I want to insert a new record in CRM\'s custom entity where one of the fields is of lookup type i.e. new_contactid
and it is dependent on the contact
Basically the Navigation property will use the Schema Name (Camel casing) not the Logical name (pascal casing).
Please refer the comment in this blog post comments section & change appropriately:
Please follow the steps listed below :
Step 1 : Goto Cutomization Developer Resource.
Step 2 : Click to “Download Odata Metadata” link and Download the same.
Step 3 : Once Download, open it and find out name of lookup attribute ( i.e. “new_qualifiedleadid”) and check its casing.
Step 4 : Verify it with the value which you are setting in the code it should be same.