Skip to main content

Notifications

Community site session details

Community site session details

Session Id :

Update a customer in D365FO using Postman

Chaitanya Golla Profile Picture Chaitanya Golla 17,225

Hi,

In this post we will view the steps to update customer(used CustomerV2 entity) in D365FO. 

Step 1: Register D365FO in Azure Platform. Please refer to previous post to view the steps for App registration.

 Application registration of D365FO with Azure 

Step 2: Setup Postman with D365FO. Note: Used environment variables to setup bearer token and authorization in this post.

 Postman Set up with D365FO 

Step 3: Retrieve the OData URL for customer entity. In my case it is https://D365FO URL/data/CustomersV2.

Step 4: Launch Postman, select the Devbox collection and click on three dots. Select Add Request and provide name (say) Update Customer.

Add Request

2845.NewRequest.jpg

Request Name

7382.RequestName.jpg

Step 5: Provide the command for the PATCH Request with URL as 

{{resource}}/data/CustomersV2(CustomerAccount='Cust002',dataAreaId='USMF)

where resource is the D365FO URL provided in the environment section. Here I am trying to update the organization name of customer with account 'Cust002' of company 'USMF'.

1462.UpdateCustomer_2D00_PatchRequest.jpg

Step 6: Create two entries under Header section and provide values for Authorization and Content-Type.

Authorization bearer{{bearerToken}}
Content-Type application/json

8814.UpdateCustomer_2D00_Headers.jpg

Step 7: Under Body section, select raw view and provide the below content to update the organization name of customer.

{                 
    "OrganizationName""Test003"
}

7356.UpdateCustomer_2D00_Body.jpg

Step 8: Click on Send button.

6431.UpdateCustomer_2D00_Send.jpg

Step 9: View the output with status as 204.

5873.Output.jpg

Regards,

Chaitanya Golla

Comments

*This post is locked for comments