Multiple object sets.

This feature allows to process multiple sub-jobs under the same main job.


Feature overview.

If you have to perform multiple operations with the same sobject it's impossible using only the standard "objects" array, because each object can be specified only once.

To remove this limitation we introduced a new "objectSets" property. It allows you to create multiple subsets of objects an process them sequentially in separated sub-jobs under the single main job.

If you have objects both in the "objects" set and in the objectSets subsets - the set of "objects" will run before the objectSets subsets.

In the example below we have 2 object sub-sets.

The first sub-set deletes all Accounts and Opportunities.

The second sub-set inserts 1 record from Accounts.

You can see that the Account object will be handled twice with different operations.

  {
  "objectSets": [
    {
      "objects": [
        {
          "query": "SELECT Id FROM Account",
          "operation": "DeleteHierarchy"
        },
        {
          "query": "SELECT Id FROM Opportunity",
          "operation": "DeleteHierarchy"
        }
      ]
    },
    {
      "objects": [
        {
          "query": "SELECT Name FROM Account LIMIT 1",
          "operation": "Insert"
        }
      ]
    }
  ]
}

See also:

Full export.json format.

Last updated on Tu May 2022