Recently, I was trying to update a record via Web API in Dynamics 365:
entity['email@example.com'] = contactId
However, it threw below error:
“An undeclared property ‘new_parentCustomerId’ 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.”
I explored multiple blogs and tried to look for the solutions but everyone suggested to use Schema Name but it did not work.
Finally, after investigation, I resolved it as below:
1. Go to Settings-->Customization-->Developer Resources.
2. click on Download oData Metadata link under Instance Web API.