|
08.03.2019, 01:23 | #1 |
Участник
|
axatoz: Using Postman with D365
Источник: https://axatoz.wordpress.com/2019/03...man-with-d365/
============== 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 Источник: https://axatoz.wordpress.com/2019/03...man-with-d365/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|