How to setup postman to call d365 Data Entities

 First Go to Azure Portal : https://azure.microsoft.com/en-us/get-started/azure-portal





17613675-ef4c-486d-8ba0-58ec68b3554d  -Tenant ID


97097d3c-d6e7-419b-8230-2797e0b6c0ca -Object ID



Post Man End Points:


1)  https://login.microsoftonline.com/17613675-ef4c-486d-8ba0-58ec68b3554d/oauth2/v2.0/token


17613675-ef4c-486d-8ba0-58ec68b3554d ->this is tenant ID


body for 1st endpoint


client_id -> 74a84752-20a8-4831-b275-9ff61dbe241b


client_secret -> 7ng8Q~1mBo.NEgFA1m_5OWDFi2skfO8ZMf5KJbBL


grant_type ->  client_credentials


Scope  ->  https://rar-dev124e547d159e8e55b0devaos.axcloud.dynamics.com/.default


2) https://login.microsoftonline.com/17613675-ef4c-486d-8ba0-58ec68b3554d/oauth2/token


body for 2 nd endpoint


client_id -> 74a84752-20a8-4831-b275-9ff61dbe241b


client_secret -> 7ng8Q~1mBo.NEgFA1m_5OWDFi2skfO8ZMf5KJbBL


grant_type ->  client_credentials


resource->  https://rar-dev124e547d159e8e55b0devaos.axcloud.dynamics.com


copy the following two lines of code and paste in tests header in postman to store access token in a environment varaible


var jsonData=JSON.parse(responseBody);


postman.setEnvironmentVariable("access_token",jsonData.access_token);


To call the data entity use the following endpoint :

https://D365 URL/data/Data Entity Name














Comments

Popular posts from this blog

How to Create a wizard in x++ d365

how to post trade agreement journals automatically using x++ code

X++ code to CREATE AND POST A TRADE AGREEMENT IN MICROSOFT DYNAMICS 365 in D365 F & O