title | description | ms.date | ms.topic | author | ms.author | ms.reviewer | keywords | ms.assetid | topic-status |
---|---|---|---|---|---|---|---|---|---|
Retrieve data using msdyn_RetrieveKPIValuesForGDPR action |
Use the action to programmatically retrieve profiles, interactions, and KPIs for an account, contact, lead or opportunity that is stored Azure service. |
04/21/2023 |
article |
udaykirang |
udag |
udag |
GDPR; data protection; privacy; embedded intelligence |
d0d20528-0a72-4dd2-8c91-6367a9d4279d |
Drafting |
[!INCLUDE gdpr-intro]
Use the msdyn_RetrieveKPIValuesForGDPR action to programmatically retrieve profiles, interactions, and KPIs stored in Azure service that is used to compute and store data for an contact, lead, opportunity, or systemuser. This action is useful for responding to data requests to fulfill your data privacy compliance obligations in Dynamics 365 Sales Insights.
Note
- You can also generate request and response classes for this action to include in your application code. More information: Generate early-bound types for an action
- This topic is applicable only for the Relationship Analytics and Introduction to Sales Insights application features.
The msdyn_RetrieveKPIValuesForGDPR action expects the following input parameters:
Name | Type | Description |
---|---|---|
CRMRecord |
mscrm.crmbaseentity | Entity type for which you want to retrieve the data. Required. You can specify one of the following values:
Depending on the specified entity type, you must specify |
|
The msdyn_RetrieveKPIValuesForGDPR action returns the following value:
Name | Type | Description |
---|---|---|
msdyn_RetrieveKPIValuesForGDPRResponse |
ComplexType | Contains the response from the msdyn_RetrieveKPIValuesForGDPR action. It contains the following property that contain the structured data of the type:
|
Request
POST [Organization URI]/api/data/v9.0/msdyn_RetrieveKPIValuesForGDPR HTTP/1.1
Accept: application/json
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
{
"CRMRecord": {
"@odata.type": "Microsoft.Dynamics.CRM.contact",
"contactid": "bf1b1e9a-6e28-e811-a94e-000d3a365e68"
}
}
Response
The response contains a JSON object with a Response
property containing the list of data stored in Azure service that is used to compute and store data.
HTTP/1.1 200 OK
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0
{
"@odata.context": "[Organization URI]/api/data/v9.0/$metadata#Microsoft.Dynamics.CRM.msdyn_RetrieveKPIValuesForGDPRResponse",
"Response": {\"EntityId\": \"bf1b1e9a-6e28-e811-a94e-000d3a365e68\",\"Daily UI KPIs\": \"Some Values\",\"Lifetime UI KPIs\": \"Some Values\",\"Most Contacted KPIs\": \"Some Values\",\"Health KPIs\": \"Some Values\"}]"
}
[!INCLUDEfooter-include]