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.
We were getting this error in the submission of one of our outbound Marketing forms. Activity id: e1ede147-efb6-457d-bc19-826c6176a2e4, Request id: jH7xRiEzGFTdZQTbE2fkh9_Z_WtjumCqJERuYZbGSL0_0, Exception: Entity ‘Contact’ With Id = 896b960d-c5d7-4c4d-95c7-a9e226afbf8e Does Not Exist The form had only the Lead form matching defined and Only leads for Update contacts / leads. … Continue reading “Fix – Exception in creation of lead (Dynamics 365 Marketing)”
To configure the WhatsApp channel, we need to set up the account in the Customer Service Admin Center. Navigate to Customer Support >> Channels >> Messaging Accounts (Manage) Select the New Account option there Select WhatsApp as the channel Next, we need Account SID and Authentication token. To … Continue reading “Configure WhatsApp channel – Omnichannel (Dynamics 365)”
Originally posted on Prashant Kumar Maurya: In one of my recent project, there was a requirement to disable/remove export button from report viewer (Only for certain set of users). To achieve this, we had to remove below two permissions from all roles assigned to those users. You can…
Originally posted on CIAOPS: As I have detailed previously: Power Automate Twitter connector failing I needed to regenerate the connection to Twitter in my Flows. The following is what worked for me and I hope it can help you as I didn’t find this set out clearly anywhere…
Recently while importing the solution in our UAT we got the below error – It was showing the above entity relationships missing in the solution. We could not find them inside the Power Apps Maker Portal, to add them in the source solution. Interestingly enough we were able … Continue reading “Fix – Missing dependencies error while importing solution (Dynamics 365)”
For this example, we are taking the Company Name customer lookup column of the contact table. We start by adding the Customer Name field to the form. That adds a card to the form, let us add the required controls to get it working Radio Button, Combo box, … Continue reading “Using Customer Lookup in Canvas Apps (Dataverse)”
4 thoughts on “Execute Privilege Name (ExecutePrivilegeName) property of Custom API in Dynamics 365 / Microsoft Dataverse”