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 :

Create new customer in D365FO using Postman

Chaitanya Golla Profile Picture Chaitanya Golla 17,225

Hi,

In this post we will view the steps to create new 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/CustomersV3.

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

Add Request

4670.SelectCustomers_2D00_NewRequest.jpg

Request Name

7384.RequestName.png

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

{{resource}}/data/CustomersV3

where resource is the D365FO URL provided in the environment section.

0285.CustomerCreation-_2D00_-Post.jpg

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

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

4130.CustomerCreation-_2D00_-Headers.jpg

Step 7: Under Body section, select raw view and provide the below content to create customer C145345659. 

{
            "InvoiceAccount""C145345659",
            "dataAreaId""USMF",
            "CustomerGroupId""REGULAR",
            "CustomerAccount""C145345659",
            "PartyType""Organization",
            "OrganizationName""Test Account111002",
            "SalesCurrencyCode""USD"
}
1856.CustomerCreation-_2D00_-Body.jpg
Step 8: Click on Send button.
4571.CustomerCreation-_2D00_-Send.jpg
Step 9: View the output with status as 201(created).
2275.CustomerCreation-_2D00_-Output.jpg

Regards,

Chaitanya Golla

Comments

*This post is locked for comments