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 

  1. Access the Azure Active Directory Portal and go to Azure Active Directory 
     
     
     

  1. 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 
     
     

  1. 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 
     

  1. Application is registered. From the overview, you can find 
    - the application id 
    - The tenant id 
    Copy them somewhere you will need it later. 
     

  1. 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. 
     
     

  1. 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 

  1. We need to create new application user for which go to 
    https://admin.powerplatform.microsoft.com/  
     

  1. In the environment, Select your environment. 
     

  1. Once you have selected your environment, now go to settings 
     

  1. From Settings, select Users + Permissions and from options select application users 
     

  1. 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 

Text Box 

Sample 

 

 

 

Text Box 

Sample 

 

 

 

Text Box 

Sample 

 

 

 

Text Box 

Sample 

 

 

 

Text Box 

Sample 

 

 

 

Text Box 

Sample 

 

 

 

Text Box 

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

Popular posts from this blog

🚀 Automatically Moving Business Process Flow (BPF) Stages in Dynamics 365 Using JavaScript

AI-Powered Power Pages Development with Claude Code Plugin

🛠 Power Automate: Handling Cached Runs After Long Downtime