Skip to main content

D365 Postman access token creation

To test an OData service of D365 through Postman we need to generate an access token. Go through the Microsoft blog for a quick overview on how to generate an access token here.

The endpoint for getting the access token should be in the format https://login.microsoftonline.com/[tenant ID]/oauth2/token

The method type is 'POST'.
The following parameters are given in the body of the request.

In the 'Tests' tab of the request use the following code below.
I have declared a global variable 'bearerToken' and assign the access token to it.
This variable can be used in other service requests.
This step is not mandatory but it is useful when when we want to test multiple OData services.

After sending the request, the access token is received in the body of the response.


Comments

  1. If you wish for to get a good deal from this piece of writing then you have to apply such techniques to your won webpage.

    ReplyDelete
  2. Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! However, how can we communicate?

    ReplyDelete
    Replies
    1. Hello!
      Thanks. Comments like these help us bloggers to keep motivated!
      You can send me a mail Maheshholla@outlook.com to connect.

      Delete

Post a Comment