Retrieve insights data using msdyn_RetrieveKPIValuesForGDPR action
The European Union (EU) General Data Protection Regulation (GDPR) gives significant rights to individuals regarding their data. Refer to the Microsoft Learn General Data Protection Regulation Summary for an overview of GDPR, including terminology, an action plan, and readiness checklists to help you meet your obligations under GDPR when using Microsoft products and services.
You can learn more about GDPR and how Microsoft helps support it and our customers who are affected by it.
- The Microsoft Trust Center provides general information, compliance best practices, and documentation helpful to GDPR accountability, such as Data Protection Impact Assessments, Data Subject Requests, and data breach notification.
- The Service Trust portal provides information about how Microsoft services help support compliance with GDPR.
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.
Action parameters
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 |
Action return type
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:
|
Example
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\"}]"
}