Hi Experts,
I'm facing 400 error while creating a custom entity record using CRM web API.
The problem is passing data for lookup fields. tried changing different formats of json object for lookups, but no luck.
Format 1:
entity.primarycontactid = { Id: "ba121cbc-6a41-e611-80e0-c4346bc58294", LogicalName: "contact" };
Format 2:
var entity = {};
entity["account@odata.bind"] = "/accounts("ba121cbc-6a41-e611-80e0-c4346bc58294")";
entity["pricelist@odata.bind"] = "/pricelevels("ba121cbc-6a41-e611-80e0-c4346bc58294")";
Other fields works fine.
Any help is much appreciated.
*This post is locked for comments