I am attempting to use the createRecord function to create an entity record with a lookup value for another entity.
The logical name of the entity for the lookup is "new_employee", and the navigation property is "new_employeeid".
When I invoke the createRecord function passing the object above I receive the error: Microsoft.OData.ODataException: Does not support untyped value in non-open type.
I understand that this error may occur if a property name is miss spelled. I can confirm that the navigation property is correct, and the schema name for "new_employeeid" is also lowercase.
I have been successful using the createRecord function for other entities having the same type of lookup with the same navigation property name so it is unclear why it exclusively fails for one entity.
Any assistance would be greatly appreciated. Please respond if anything about my problem is unclear.
Can you please use REST Builder from XRM Toolbox. And then test it once by providing input as lookup, also compare your request and REST builders request format.
Thank you,
Amit Katariya
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.