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