I am trying to update a custom field in a Sales Order line using the REST API, but I’m encountering the following error:
Method: PUT
JSON Payload:
{ "OrderType": { "value": "SO" }, "OrderNbr": { "value": "000183" }, "Details": [ { "LineNbr": { "value": "1" }, "MetaData": { "value": "Updated via CBAPI" } } ]}Error Returned:
{ "message": "An error has occurred.", "exceptionMessage": "The given key was not present in the dictionary.", "exceptionType": "System.Collections.Generic.KeyNotFoundException" } Has anyone encountered this issue before? Is there something wrong with the structure of the payload or the custom field name?
Any help is appreciated!