Bad request error while adding a lookup GUID field in CRM database using Web API

后端 未结 1 1922
情书的邮戳
情书的邮戳 2021-01-14 02:44

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

1条回答
  •  -上瘾入骨i
    2021-01-14 03:37

    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.

    0 讨论(0)
提交回复
热议问题