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.
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
Request Name
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'.
Step 6: Create two entries under Header section and provide values for Authorization and Content-Type.
Authorization | bearer{{bearerToken}} |
Content-Type | application/json |
Step 7: Under Body section, select raw view and provide the below content to update the organization name of customer.
Step 8: Click on Send button.
Step 9: View the output with status as 204.
Regards,
Chaitanya Golla
*This post is locked for comments