> For the complete documentation index, see [llms.txt](https://learn.capstorm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.capstorm.com/copystorm-restore/reference/restore-plan-tab/restore-order.md).

# Restore Order

The Restore Order tab lists the order in which tables will be inserted / updated into Salesforce.

The order is determined using:

* The metadata from Salesforce to determine nearly all relationships.
* Additional configuration information in CopyStorm/Restore.
  * This is used to supplement inaccurate or incomplete Salesforce metadata.

CopyStorm/Restore attempts to restore tables in an order which will minimize the number of reference fields patched during a second pass — the following screenshot shows an example restore order:

![](https://2924009365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FyPmqVkPxhj2oT8fbgB%2Fuploads%2Fgit-blob-ec1c9041f487aa2f04277b5eed3421fd61720283%2Fa9649d34-RestoreOrderPicture1.png?alt=media)
