web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Delete a customer in D365FO using Postman

Chaitanya Golla Profile Picture Chaitanya Golla 17,225

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.

 Postman Set up with D365FO 

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

5123.SelectCustomers_2D00_NewRequest.jpg

Request Name

0550.RequestName.jpg

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.

8802.Request.jpg

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

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

7888.Headers.jpg

Step 6: Click on Send button.

6874.Send.jpg

Step 7: View the output with status as 204 indicating the intended customer is successfully deleted.

0508.Output.jpg

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)

Warning.jpg

Regards,

Chaitanya Golla

Comments

*This post is locked for comments