|
1 |
| -<<<<<<< HEAD |
2 |
| ---- |
3 |
| -title: "Actions on visualizations (charts) (model-driven apps) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces" |
4 |
| -description: "Using the Common Data Service web services, you can perform the following actions on the visualization entities." # 115-145 characters including spaces. This abstract displays in the search result." |
5 |
| -keywords: "" |
6 |
| -ms.date: 10/31/2018 |
7 |
| -ms.service: powerapps |
8 |
| -ms.topic: article |
9 |
| -ms.assetid: c7eb3bdf-9d6f-9bcc-8114-4c3dc5be2976 |
10 |
| -author: Nkrb # GitHub ID |
11 |
| -ms.author: nabuthuk # MSFT alias of Microsoft employees only |
12 |
| -manager: shilpas # MSFT alias of manager or PM counterpart |
13 |
| -ms.reviewer: |
14 |
| -search.audienceType: |
15 |
| - - developer |
16 |
| -search.app: |
17 |
| - - PowerApps |
18 |
| - - D365CE |
19 |
| ---- |
20 |
| - |
21 |
| -# Actions on visualizations (charts) |
22 |
| - |
23 |
| -<!-- https://docs.microsoft.com/dynamics365/customer-engagement/developer/customize-dev/actions-visualizations-charts --> |
24 |
| - |
25 |
| -Using the Common Data Service Web Services, you can perform the following actions on the visualization entities. |
26 |
| - |
27 |
| -## Actions on organization-owned visualizations |
28 |
| - |
29 |
| -To perform actions on an organization-owned visualization (`SavedQueryVisualization`), you must have the System Administrator or the System Customizer role. You can perform the following actions on an organization-owned visualization: |
30 |
| - |
31 |
| -- Create, retrieve, update, and delete an organization-owned visualization. More information: [Create a Visualization](create-visualization-chart.md) |
32 |
| - |
33 |
| - > [!NOTE] |
34 |
| - > After updating an organization-owned visualization, you must publish the metadata changes to make it visible across the organization by using the <xref:Microsoft.Crm.Sdk.Messages.PublishAllXmlRequest> message. Alternatively, whenever you publish an entity, all the unpublished organization-owned visualizations that are attached to the entity are published automatically. |
35 |
| - |
36 |
| -- Query and retrieve all the organization-owned visualizations that are attached to an entity using the `SavedQueryVisualization.PrimaryEntityTypeCode` attribute. Multiple organization-owned visualizations can be attached to a single entity. For a list of entities with which you can attach a visualization, see [Entities Supported for Visualizations](view-data-with-visualizations-charts.md#SupportedVisualizationEntities). For a code sample that demonstrates how to retrieve all the organization-owned visualizations attached to an entity, see [Sample: Retrieve all Charts Attached to an Entity](/dynamics365/customer-engagement/developer/customize-dev/sample-retrieve-all-charts-attached-entity). |
37 |
| - |
38 |
| - > [!NOTE] |
39 |
| - > You cannot change or update a visualization to attach it with a different entity after you have created the visualization. It implies that the `SavedQueryVisualization.PrimaryEntityTypeCode` attribute is not valid for the update action on the organization-owned visualization. |
40 |
| - |
41 |
| -- Specify an organization-owned visualization as the default visualization for the associated entity by setting the `SavedQueryVisualization.IsDefault` attribute to `true`. When you set an organization-owned visualization as the default visualization for an entity, the visualization is displayed by default when you select to view the visualizations for this entity in Common Data Service. |
42 |
| - |
43 |
| - > [!NOTE] |
44 |
| - > Using the Common Data Service Web Services, if you set an organization-owned visualization as default for an entity that already has another visualization set as default, both the visualizations are marked as default visualizations for the entity. To set a visualization as a default visualization for an entity, make sure that no other visualization is set as the default visualization for the entity. |
45 |
| - |
46 |
| - For a list of supported messages on the organization-owned visualization entity, see [SavedQueryVisualization Entity](../common-data-service/reference/entities/savedqueryvisualization.md). |
47 |
| - |
48 |
| -## Actions on user-owned visualizations |
49 |
| - You can perform the following actions on a user-owned visualization (`UserQueryVisualization`): |
50 |
| - |
51 |
| -- Create, retrieve, update, and delete a user-owned visualization. More information: [Create a Visualization](create-visualization-chart.md) |
52 |
| - |
53 |
| -- Query and retrieve all the user-owned visualizations that are attached to an entity using the `UserQueryVisualization.PrimaryEntityTypeCode` attribute. Multiple user-owned visualizations can be attached to an entity. For a list of entities with which you can attach a visualization, see [Entities Supported for Visualizations](view-data-with-visualizations-charts.md#SupportedVisualizationEntities). |
54 |
| - |
55 |
| - > [!NOTE] |
56 |
| - > You cannot change or update a visualization to attach it with a different entity after you have created the visualization. It implies that the `UserQueryVisualization.PrimaryEntityTypeCode` attribute is not valid for the update action on the user-owned visualization. |
57 |
| - |
58 |
| -- Change the ownership of a user-owned visualization by assigning it to another user or team using <xref:Microsoft.Crm.Sdk.Messages.AssignRequest>. |
59 |
| - |
60 |
| -- Retrieve the access that the specified security principal (user or team) has to a user-owned visualization using <xref:Microsoft.Crm.Sdk.Messages.RetrievePrincipalAccessRequest>. You can also retrieve all the security principals (users or teams) that have access to a user-owned visualization, along with their access rights to the user-owned visualization using the <xref:Microsoft.Crm.Sdk.Messages.RetrieveSharedPrincipalsAndAccessRequest>. |
61 |
| - |
62 |
| -- Collaborate with other users and teams on specific areas by sharing a user-owned visualization with them using <xref:Microsoft.Crm.Sdk.Messages.GrantAccessRequest>, <xref:Microsoft.Crm.Sdk.Messages.ModifyAccessRequest>, and <xref:Microsoft.Crm.Sdk.Messages.RevokeAccessRequest>. |
63 |
| - |
64 |
| - For a list of supported messages on the user-owned visualization entity, see [UserQueryVisualization Entity](../common-data-service/reference/entities/userqueryvisualization.md). |
65 |
| - |
66 |
| -### See also |
67 |
| - [Charts](view-data-with-visualizations-charts.md) |
68 |
| - [Understanding Charts: Underlying Data and Chart Representation](understand-charts-underlying-data-chart-representation.md) |
69 |
| - [Create a Chart](create-visualization-chart.md) |
70 |
| - [Sample Charts](sample-charts.md) |
71 |
| - [Sample: Create, Retrieve, Update, and Delete (CRUD) a Chart](/dynamics365/customer-engagement/developer/customize-dev/sample-create-retrieve-update-delete-chart) <!--TODO: Need to find the topic in Powerapps repo to link --> |
72 |
| - [Sample: Retrieve all Charts Attached to an Entity](/dynamics365/customer-engagement/developer/customize-dev/sample-retrieve-all-charts-attached-entity) <!--TODO: Need to find the topic in Powerapps repo to link --> |
73 |
| - [Sample: Assign a Chart to Another User](/dynamics365/customer-engagement/developer/customize-dev/sample-assign-chart-another-user) <!--TODO: Need to find the topic in Powerapps repo to link --> |
74 |
| - [SavedQueryVisualization Entity](../common-data-service/reference/entities/savedqueryvisualization.md) |
75 |
| -======= |
76 | 1 | ---
|
77 | 2 | title: "Actions on visualizations (charts) (model-driven apps) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces"
|
78 | 3 | description: "Using the Common Data Service web services, you can perform the following actions on the visualization entities." # 115-145 characters including spaces. This abstract displays in the search result."
|
@@ -148,5 +73,4 @@ To perform actions on an organization-owned visualization (`SavedQueryVisualizat
|
148 | 73 | [Sample: Retrieve all Charts Attached to an Entity](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/RetrieveChartsAttachedToEntity)
|
149 | 74 | [Sample: Assign a Chart to Another User](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AssignChartToAnotherUser)
|
150 | 75 | [SavedQueryVisualization Entity](../common-data-service/reference/entities/savedqueryvisualization.md)
|
151 |
| ->>>>>>> ae864535ae5aab1966c3c5bd8c4250316a788d91 |
152 | 76 | [UserQueryVisualization Entity](../common-data-service/reference/entities/userqueryvisualization.md)
|
0 commit comments