Thursday, 25 July 2024

Postman setups for Development:

Collection

New collection->Add folder ->Add request.

Post:   https://login.microsoftonline.com/tenant_id/oauth2/v2.0/token

 

Body Tab:

tenant_id : XXXXX

client_id   : XXXXX

client_secret : XXXXX

grant_type    : client_credentials

scope           : https://XXXXXXXXXaos.axcloud.dynamics.com/.default

 

Scripts Tab:

var jsonData = JSON.parse(responseBody);

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

 

Go to Environment ->Create new environment.

Variable              Type         

access_token        Default

 

Navigate to Collection for New Integration->Add

 

Get/Post:  https://XX-XXXaos.axcloud.dynamics.com/api/connector/dequeue/{XXX}

 

Headers Tab

Authorization : Bearer {{access_token}}

Content-Type : application/json


Calling methods:

Get  - Read data

Post - Create/Write data

Delete -Delete data

Patch -Update only expected body fields

Put     -Update data all fields

Note: Patch and put will work for update but Patch will work Body with only updatable field put we need pass all field along with update field if not it will make empty for all fields  

No comments:

Post a Comment

workflow business event configuration with power automate flow in d365 FO

  https://www.linkedin.com/pulse/purchase-order-approvals-d365fo-power-automate-ahmed-ali-el-bardisy-jyssf/