Hi, Issue related Dynamics 365 CRM Web API using JavaScript. I am facing an issue while creating Or updating any Activity Type entity's record with any custom lookup attribute. E.g. (Phone Call Or any custom activity type entity). It looks like a problem within the activities only. Is it known issue ?
Here is the code:
var entity = {}; entity["new_account@odata.bind"] = "/accounts(XXA19CDD-XXXX-XXXX-XXXX-6C3BE5A8B2XX)"; entity.subject = "API Phone Call";
entity.description = "Test";
entity["regardingobjectid_account@odata.bind"] = "/accounts(XXA19CDD-XXXX-XXXX-XXXX-6C3BE5A8B2XX)";
After removing the below line the code is working absolutely perfect. entity["usb_account@odata.bind"] = "/accounts(XXA19CDD-XXXX-XXXX-XXXX-6C3BE5A8B2XX)";
Error Details: "An undeclared property 'usb_account' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values."
Highly appreciated for any potential input. Thanks...
*This post is locked for comments