I want to create order in Dynamics - Finance and Operations: SalesOrderHeadersV2 via API (now I test it by postman). The problem occurs when i fill out field ContactPersonId. The error message: /Write failed for table row of type 'SalesOrderHeaderV2Entity'. Infolog: Warning: validateField failed on field 'SalesOrderHeaderV2Entity.ContactPersonId'./
I checked the ContactPersons table entry with the ContactPersonId and try to use variouse ContactPersonId's but got the same error as a result. Can anyone help me or give me a hint?
Hi, for the error message, it indicates that the value you're providing for the ContactPersonId field is not valid or does not meet the required criteria.
I have checked the code for the SalesOrderHeaderV2Entity, and there is indeed has some criteria, you need to make sure the parameter named ContactPerson is valid and ensuring that it corresponds to a valid entry in the ContactPersons table.
Best Regards,
Judy
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.