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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

POST entity in batch request with alternative key binding

(0) ShareShare
ReportReport
Posted on by

Hi All

Following call fails to create record:

--batch_bb9c263c-723a-40e6-a14c-721ff866443b
Content-Type: application/http
Content-Transfer-Encoding:binary

POST https://[OrganizationName].api.crm11.dynamics.com/api/data/v9.1/crb7c_erpids HTTP/1.1
Content-Type: application/json;type=entry


{"crb7c_givenpostcode": "TestPostCode","crb7c_spenddaterange": "Test Batch 1", "crb7c_name": "test@Name", "crb7c_erpid": "1234599TEST", "crb7c_SupplierAccountId@odata.bind" : "/crb7c_supplieraccountses(crb7c_oxygenuid='966d86d5-3356-4956-8ad7-09ba855900d0')"}

--batch_bb9c263c-723a-40e6-a14c-721ff866443b--


Using Postman I get an error:

{"error":{"code":"0x80040217","message":"crb7c_supplieraccounts With Id = 966d86d5-3356-4956-8ad7-09ba855900d0 Does Not Exist","innererror":{"message":"crb7c_supplieraccounts With Id = 966d86d5-3356-4956-8ad7-09ba855900d0 Does Not Exist...

I have alternative key set up on Supplier entity and I can do GET request using it.

Where could be the problem?

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans