Delete a customer in D365FO using Postman
Hi,
In this post we will view the steps to delete a customer 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: Launch Postman, select the Devbox collection and click on three dots. Select Add Request and provide name (say) Delete Customer
Request Name
Step 4: Provide the command for the DELETE Request with URL as
{{resource}}/data/CustomersV2(CustomerAccount='Cust002',dataAreaId='USMF')
where resource is the D365FO URL provided in the environment section. With this request we are trying to delete customer with account Cust002 of company USMF.
Step 5: Create two entries under Header section and provide values for Authorization and Content-Type.
| Authorization | bearer{{bearerToken}} |
| Content-Type | application/json |
Step 6: Click on Send button.
Step 7: View the output with status as 204 indicating the intended customer is successfully deleted.
Please note to clear the invoice account of the customer we are trying to delete, if not we will receive the waring(as shown below)
Regards,
Chaitanya Golla

Like
Report
*This post is locked for comments