Integration of 3rd Party Services with Dataverse Using Azure
Integration between 3rd Party services and Dataverse using Azure has been done in three steps.
Step-1 Register a new Dynamics 365 App in Azure Portal
Access the Azure Active Directory Portal and go to Azure Active Directory
You must register a new Dynamics 365 App. Basically, you will create a unique App ID with specific right to access your dynamics 365.
First you need to connect to Azure Portal with administrator credentials.
From the homepage, click on Azure Active Directory -> App Registration -> New Registration
In the Application registration form, you must enter some information:
i- Name: this is the name of the registration app. Enter a meaningful one.
ii- In the Supported account types of part, select Accounts in any organizational directory
iii- Set the redirect URL. In our case, let’s use Web and http://localhost
Then click on Register
Application is registered. From the overview, you can find
- the application id
- The tenant id
Copy them somewhere you will need it later.
Now go on API permissions
Click on Add a permission. Select Dynamics CRM under the API Microsoft Graph tab.
Click on Delegated permissions, check the options and click on Add permissions.
Now Click on Certificates & Secrets and create a new client secret.
Add a name and define the expiration duration of your secret value. Then click on Add.
Your client secret is now created. Copy and keep its value somewhere safe because you won’t be able to copy again once the page is reloaded.Application is now registered and setup.
Step-2 Create new Application User in Power Platform Admin Center
We need to create new application user for which go to
https://admin.powerplatform.microsoft.com/
In the environment, Select your environment.
Once you have selected your environment, now go to settings
From Settings, select Users + Permissions and from options select application users
Select new app user
Now click on + add an app and add your application which is created in the Azure Portals.
add business unit and Security roles to the application user and create the user.
Now you can see the application user has been added to the list.
Now you can get token and call Dataverse API
Step-3 Call Dataverse API Requests
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Global Variables in Postman
Status Code
Status | Description |
200 | successful request |
201 | successful request and data was created |
204 | successful request with empty response |
401 | Unauthorized Access |
400 | This is used for Bad Request |
403 | Forbidden or Access Denied |
404 | Data Not Found |
405 | Method not allowed or requested method is not supported |
500 | Internal Server Error |
503 | Service Unavailable |
Comments
Post a Comment