Skip to content

Migration Plans

Jannis Schreiber edited this page Nov 25, 2024 · 8 revisions

Migration plans allow you to program a series of steps that to export data from a source org and import this data to a target org.

The plugin currently only supports data export.

Configuring a Plan

A plan consists of a name and an ordered list of objects to export.

name: Simple Test Plan
objects:
  - objectName: Account
    queryString: SELECT Id,Name FROM Account

A more complex example shows the variations

name: Complex Test Plan
objects:
  - objectName: Account
    queryFile: test/data/soql/accounts.sql
    exportIds: myAccountIds
  - objectName: Contact
    query:
      fetchAllFields: true
      parent:
        field: AccountId
        variable: myAccountIds
  - objectName: Order
    queryString: SELECT Id,AccountId,BillToContactId FROM Order LIMIT 100
  - objectName: Opportunity
    queryString: SELECT Id,AccountId FROM Opportunity LIMIT 10

The "Object" Definition

...

Exports and Parent Binds

Clone this wiki locally