To test, we updated the security of the Application User to Sales Manager role which doesn’t have the create incident privilege.
Calling the custom API this time as expected gave us the below error
{“error”:{“code”:”0x80040220″,”message”:”Principal user (Id=0f377e29-5545-eb11-a813-000d3a9bf733, type=8, roleCount=1, privilegeCount=727, accessMode=4), is missing prvCreateIncident privilege (Id=6cf9442b-e690-4cad-8b0a-e60464960b93) on OTC=112 for entity ‘incident’. context.Caller=0f377e29-5545-eb11-a813-000d3a9bf733″}}
If we specify an incorrect privilege name we would get the below error and will not be able to save the record.
Originally posted on Dynamics 365: When an new Environment is created, it takes more than an hour or some times a day to sync users from Azure AD to CRM. Through Power Shell cmdlets, we can sync user immediately. Install Module Microsoft.PowerApps.Administration.PowerShell Install-Module -Name Microsoft.PowerApps.Administration.PowerShell Connect to Power Apps…
Originally posted on Ricky Safford Development Repository: Please remember to reschedule these maintenance jobs after the installation of CRM is completed. Maintenance Job Name Purpose Default Frequency/ Recommendation Deletion Service The deletion service maintenance operation now cleans up subscription tracking records for deleted metadata objects as they expire.…
Azure API Management is an Azure service to create consistent API gateways for secure, scalable access for back-end applications and services. Azure API Management consists of 3 main components API Gateway Azure Portal for administration Developer Portal for API documentation Each API inside Azure API Management contains a … Continue reading “Manage Dynamics 365 Web API with Azure API Management”
Custom API (preview) allows us to define our custom messages that can be called from web services, similar to Custom Actions. Usually, we would be creating custom workflow actions just to create a new message, to which we can hook our plugin, without defining any logic in the … Continue reading “Use Custom API to create custom messages in Dynamics 365”
Originally posted on Phani Rajasekhar: In my previous blog I explained the issues that I faced while POA entity migration. Here I will explain the whole process that I followed to migrate the personal views with sharing information. I used kingsway soft adapter for my migration process. We…
Use CrmServiceClient to execute web request against Dynamics 365 Web API – OAuth Consume Dynamics 365 Web API using MSAL.NET using ConfidentialClientApplicationBuilder class the connection string parameters Consume Dynamics 365 Web API – OAuth – Authorization Code Grant Type Consume Dynamics 365 Web API – OAuth – Implicit … Continue reading “Sample Code – Dynamics 365 Web API / Organization Service”
2 thoughts on “Execute Privilege Name (ExecutePrivilegeName) property of Custom API in Dynamics 365 / Microsoft Dataverse”