web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / axatoz / Using Postman with D365

Using Postman with D365

Hai Nguyen Profile Picture Hai Nguyen 266

We need the right tool for the job. Postman is a tool that often used to interact with Restful services (OData). Below is how you can setup postman to work with D365 (assuming you know how to setup on Azure side like tenant_id, client_id, client_secret)

SETUP

Setting up BearerToken

Params tab

Body tab

grant_type: {{grant_type}}

client_id: {{client_id}}

client_secret: {{client_secret}}

resource: {{resource}}

Test tab

var json = JSON.parse(responseBody);

tests[“Get Azure AD Token”] = !json.error && responseBody !== ” && responseBody !== ‘{}’ && json.access_token !== ”;

postman.setEnvironmentVariable(“bearerToken”, json.access_token);

TEST

OR

Postman with CRUD operations

Insert
Operation

Header tab

Authorization =
Bearer {{bearerToken}}

If-None-Match = null

OData-Version = 4.0

Content-Type = applicatin/json

Accept = application/json

Odata-MaxVersion = 4.0

Body tab

Result


This was originally posted here.

Comments

*This post is locked for comments