• Mayank Acharya
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hi Devs,

I have 2 custom objects

1) order having  fields -> orderId, pobox, emailaddress etc. some of these are required fields.
2) item refer to order in master detail relationship, order was created first so assuming that will be master.

item having fields -> itemid, category, orderId , Order__c

WHen I make post call on item without any fields of Order in payload it return exception saying "message": "Required fields are missing: [Order__c]"

My questions is  do I need to pass all fields of "order" object when I do POST on  item object  or just those which  are required once under order object field definition? Or Is there any other way to refence the order object  while making post call to item object?  

 

Hi Devs,

I have 2 custom objects

1) order having  fields -> orderId, pobox, emailaddress etc. some of these are required fields.
2) item refer to order in master detail relationship, order was created first so assuming that will be master.

item having fields -> itemid, category, orderId , Order__c

WHen I make post call on item without any fields of Order in payload it return exception saying "message": "Required fields are missing: [Order__c]"

My questions is  do I need to pass all fields of "order" object when I do POST on  item object  or just those which  are required once under order object field definition? Or Is there any other way to refence the order object  while making post call to item object?