1

i am trying to use Bulk Api to create a case. Case object contains Account,other custom child objects and Account contains Contact. How can i insert/update/upsert this object structure using BulkApi in CSV and JSON format

2
  • If you're creating "a" Case (as in one), why are you using the Bulk API? The REST API would be much more suitable, and you could make use of the sObject Tree resource.
    – David Reed
    Aug 30, 2018 at 11:25
  • just to test Bulk Api , i am trying to create one Case but the requirement is i will get large amount of data from external system to create cases
    – user59749
    Aug 30, 2018 at 11:55

1 Answer 1

1

You have to upsert the parent objects first, and the Bulk Api will return the new IDs. Then you have to map the old IDs to the new IDs in the child objects, and use the Bulk API to upsert them as well. Nothing magic about it, unfortunately.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .