In the previous post, we created a simple custom API https://nishantrana.me/2021/01/13/use-custom-api-to-create-custom-messages-in-dynamics-365/
Let us look at its different properties starting with ExecutePrivilegeName
Execute Privilege Name attribute of custom API allows us to specify the name of the privilege that allows execution of the custom API.
Let us update the custom API and specify the privilege name.
For simplification, we have used prvCreateIncident here i.e. Create Case / Incident Privilege.
To get the Privilege name
https://%5Borgname%5D.api.crm.dynamics.com/api/data/v9.1/privileges?$select=name
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.
Hope it helps..
-
Execute Privilege Name (ExecutePrivilegeName) property of Custom API in Dynamics 365 / Microsoft Dataverse
by Nishant Rana
January 14, 2021
In the previous post, we created a simple custom API
https://nishantrana.me/2021/01/13/use-custom-api-to-create-custom-messages-in-dynamics-365/ Let us look at its different properties starting with ExecutePrivilegeName Execute Privilege Name attribute of custom API allows us to specify the name of the privilege that allows execution of the custom API. Let us update the …
Continue reading “Execute Privilege Name (ExecutePrivilegeName) property of Custom API in Dynamics 365 / Microsoft Dataverse”
-
Use Custom API to create custom messages in Dynamics 365
by Nishant Rana
January 13, 2021
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”
-
Improved search experience in Dynamics 365 / PowerApps
by Nishant Rana
January 12, 2021
To enable the new search experience, we need to turn on the relevance search on that environment. Login to the admin portal and environments section
https://admin.powerplatform.microsoft.com/environments Navigate to Settings -> Features and turn on the Relevance Search This places the search bar in the header, making it easy …
Continue reading “Improved search experience in Dynamics 365 / PowerApps”
- Migration of Personal views/charts/dashboards with sharing information
by Nishant Rana
January 7, 2021
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…
-
Sample Code – Dynamics 365 Web API / Organization Service
by Nishant Rana
January 6, 2021
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”
-
Dynamics 365 Sales mobile app (preview)
by Nishant Rana
January 5, 2021
The new Dynamics 365 Sales mobile app (preview), has been introduced specifically for the field sellers who need quick access and intuitive management of the customer information on the go while travelling / meeting the customers. Check other posts on 2020 Release Wave 2 To enable the App, …
Continue reading “Dynamics 365 Sales mobile app (preview)”
-
Application User Form missing in Dynamics 365
by Nishant Rana
December 24, 2020
Recently while trying to create a new application user, we could not find the application user form for the system user entity in the web application. Within the maker portal, we can see the form available and enabled for everyone. It was inside our classic administration settings; we …
Continue reading “Application User Form missing in Dynamics 365”
- D365: “The user is not a member of the organization” error while connecting to CE
by Nishant Rana
December 23, 2020
Originally posted on
Ajit Patra:
Recently, we were working on connecting to CE to do some CRUD operation using Azure function. We were using Client ID(Application ID) and Client Secret of the app registered on Azure Active Directory. We had provided the necessary API(Dynamics CRM) Permission (delegated “user_impersonation”)…
-
Part 6: Data Integration – Return of the Best Practices
by Nishant Rana
December 23, 2020
Originally posted on
Matthew Webb’s Dynamics 365 Blog:
Recap Best Practices: Part 2 Welcome back! My previous blog discussed the use of Staging Databases as part of integration design and some tips and pointers whilst building a staging database (if you decide to use one that is). My background…
-
Historical Data Migration – Created On and Modified On in Dynamics 365
by Nishant Rana
December 22, 2020
Very insightful article by Debajit ! Just to summarize – If we are using SDK method from external application to set values for created on, modified on – we can use overriddencreatedon for created on. Modified on will be ignored. Setting values in Pre-Create Plugin – values specified …
Continue reading “Historical Data Migration – Created On and Modified On in Dynamics 365”