Skip to main content
Are there any examples of how to use the Tree API to insert child lookup objects? The examples don't show any, but the docs (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/requests_composite_sobject_tree.htm#topic-title

) make it seem as if it's possible: "Child relationships are either master-detail or lookup relationships"

Thus far I'm getting various errors and sometimes exceptions, so I wonder if you could show an example with JSON, or give more info on how to specify a lookup that is not master-detail?

the docs

4 条评论
  1. 2015年7月2日 17:33
    Jay -- Thanks for that. It's too bad there isn't a way to create lookup objects inline with assigning them to the lookup fields, since I think that'd fit naturally with the Tree API. I understand it isn't in your current design, but hopefully it will come one day.
0/9000