0

I am trying to using REST API with composite and it is failing with this error "Cannot deserialize instance of from VALUE_STRING value XXXXXXX or request may be missing a required field"

Without lookup reference, this works fine without any issue.

enter image description here

1
  • Hi, and welcome to SFSE! Please take a moment to read about How to Ask and take the tour. It's much easier for everyone involved if you use text instead of posting a screenshot (or, in addition to). Since we can't copy-paste an image as text for testing/tweaking, this results in far more typing for those who try to help.
    – sfdcfox
    Feb 2 at 19:57
1

The object has to be serialized as:

"Item__r": {
   "attributes": { "type": "Item_Details__c" },
   "Item_Number__c": 123"
}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.