'An undeclared property' when trying to create record via Web API

后端 未结 2 1445
梦如初夏
梦如初夏 2021-01-18 12:51

I am getting an error which I just cannot seem to debug. I am trying to create a custom activity entity via custom HTML/JavaScript web resource.

The user clicks a b

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-18 13:16

    After a good night's sleep I realised my error. To set the value of a lookup field, you need to use the relationship scheme name, and not the property name.

    Once I changed that, all worked fine.

提交回复
热议问题