Export of the Files, Notes and Attachments

This feature allows also to migrate binary files attached to the records.


Migration of the Note and Attachment objects.

Below find the example of export.json that allows you to include Note and Attachment into the migration schema. It assumes, that you want to export binary files related to the Account records.

See the ParentId$Account polymorphic field which binds the Notes and Attachments to the related Accounts. The master should be set to false. The binary data also will be transferred.

  objects: [
      {
          "operation": "Insert",
          "query": "SELECT Id, Name FROM Account"
      },
      {
          "operation": "Insert",
          "query": "SELECT Body, Id, Name, ParentId$Account FROM Attachment",
          "master": false
      },
      {
           "operation": "Insert",
           "query": "SELECT Body, Id, Title, ParentId$Account FROM Note",
           "master": false
      }
  ]

Migration of the Salesforce Files.

To migrate the Files attached to the records use The ExportFile Core Add-On Module


See also:

Full export.json format.

Last updated on Tu May 2022