Restoring the Metadata/Data to the Salesforce Org
  • 03 Oct 2022
  • 7 Minutes to read
  • Contributors
  • Dark
    Light

Restoring the Metadata/Data to the Salesforce Org

  • Dark
    Light

This article deals with the procedure for recovering the metadata/data to your respective Salesforce Org and provides information about the menu options that are available for restoring information in Vault.

Procedure

  1. Login to your Vault account.
  2. Click Restore from the Vault dashboard page and click on Restore Now.
  3. On the next screen, select your source Salesforce Org.
  4. Next, select the restore source and its configuration from the drop-down.
  5. Click Get Details.
  6. Based on the restore source and configuration selection, the configured list will be displayed.
    1. To restore the source as a backup, select multiple backups for restoration.
    2. For hierarchical backup and archival, you can choose only one from the list.
  7. Click on either EZ Restore or Selective Restore.
    Important Note:
    Restore Source as nCino features will be displayed only for Salesforce Orgs configured with nCino objects. For detailed nCino restore features, refer to the article: nCino Restore Features

EZ-Restore

EZ-Restore copies everything from the source to the destination, including new, updated, and existing data.

EZ-Restore Steps:

  1. Select the backup(s) from the list and click on the EZ Restore button.
  2. The restore checklists are displayed on the next pop-up screen, which must be considered before we proceed with the restore operation. Once you're done, click the Got It button. 
  3. On the next screen:
    1. Enter the label of your choice or leave the default label that was auto-generated.
    2. Specify the batch size for components to retrieve records. The max batch size that you can set per batch is 10K. This option is useful in running large jobs that would exceed normal processing limits. Per the Salesforce governor limit, you can deploy or retrieve up to 10,000 files at once or a max size of 40MB. Using Batch Size, you can process records in batches to stay within platform limits. If you have a lot of records, processing records through batches is your best solution.
    3. Choose the recipients from the Email notification dropdown who should receive notifications whenever the action is performed. The currently logged-in recipient will automatically be checked by default.
    4. Next, you can select the criteria for the restore to be performed:
      1. Disable Workflows: On selection, all the workflows of the Salesforce objects are deactivated, and the data is transferred from the source to the destination sandbox. Once the restore is completed, workflows are reactivated.
      2. Disable Validation Rules: Validation rules verify that the data a user enters in a record meets the criteria you specify before the user can save the record. On selection, all the validation rules of the Salesforce objects are deactivated, and the data would be transferred from the source to the destination sandbox. Once the restore is done, validation rules are reactivated.
      3. Enable serial mode for Bulk API: Serial mode processes batch one at a time, however, it increases the processing time for a load.
      4. Disable Relationship Mapping: On selection, the child objects related to selected objects will not be fetched.
      5. Disable Triggers: To ensure a successful recovery when working with data and metadata, you may wish to disable any triggers you have set. This feature disables Salesforce triggers only.  Any managed package triggers will not be disabled.
    5. The list of metadata and data objects replicated will be displayed for the last time before the restore process begins. You will not have options to select individual objects as it is a full restore process.
    6. Click Restore Now.

Selective Restore

This option allows you to select specific metadata/data that gets restored only to the target org. 

Select the backup(s) from the list and click on the Selective Restore button.

The next screen displays the list of metadata and data objects that will be replicated. From the list of Metadata and Data type components, the user needs to select the components (along with its member) that will be restored.

  1. Under the Metadata tab, choose the metadata members for each metadata type.
  2. Under the Data tab, you have multiple configurations to choose from:
    1. Schema: The schema will allow you to view all the corresponding child objects for your selected object.
      Point to Note:
      You may notice in the schema view that some of the objects are auto-selected by default and cannot be unchecked. These are child objects of a parent object, which will be restored if its parent object is selected. However, for other objects that are related to the selected object in some other way, you have the option to choose them manually.
      When you click the Save button, a warning popup appears, stating that you must select the appropriate hierarchy for the restore procedure, or the process will fail. To dismiss the popup notification and return to the previous screen, click OK.
    2. Selected Records: By default, all the records available in the objects will be auto-selected. To select specific records, click All under Selected Records which will lead you to a popup box where you can select the record. Post selection the summary table should show the number of records selected.
      You also have the option of importing records from a CSV file. To upload the CSV from your local system, click the Choose File button in the top right corner of the screen.
    3. Selected Fields: By default, all the fields will be selected for the objects selected. Clicking on “All” under the Selected Fields column will open a popup window with all the fields listed for the selected objects. You can also use the search filter to search for a specific field faster. Here, you can map your source field with the destination field. By default, the destination field should be mapped based on the source field name.
      Important Note:
      1. The mandatory fields are auto-selected, and therefore you do not have the option to disable them. For example, the ID field.
      2. It is mandatory to select at least one field; if no field is selected and you try to proceed further, a warning popup will be displayed stating “Select at least one field to proceed”
      3. The fields which were unchecked will have a null value in the record.
      Based on your selection, the restore will happen only for selected fields. Post selection the summary table should show the number of fields selected.
  3. Click on Trigger Restore.
  4. The restore checklists are displayed on the next pop-up screen, which must be considered before we proceed with the restore operation. Once you've finished, click the Got It button. 
  5. On the next screen:
    1. Enter the label of your choice or leave the default label that was auto-generated.
    2. Specify the batch size for components to retrieve records. The max batch size that you can set per batch is 10K. This option is useful in running large jobs that would exceed normal processing limits. Per the Salesforce governor limit, you can deploy or retrieve up to 10,000 files at once or a max size of 40MB. Using Batch Size, you can process records in batches to stay within platform limits. If you have a lot of records, processing records through batches is your best solution.
    3. Choose the recipients from the Email notification dropdown who should receive notifications whenever the action is performed. The currently logged-in recipient will automatically be checked by default.
    4. Next, select the criteria for the restore to be performed:
      1. Disable Workflows: On selection, all the workflows of the Salesforce objects are deactivated, and the data would be transferred from the source to the destination sandbox. Once the restore is completed, workflows are reactivated.
      2. Disable Validation Rules: Validation rules verify that the data a user enters in a record meets the criteria you specify before the user can save the record. On selection, all the validation rules of the Salesforce objects are deactivated, and the data would be transferred from the source to the destination sandbox. Once the restore is done, validation rules are reactivated.
      3. Enable serial mode for Bulk API: Serial mode processes batch one at a time, however, it increases the processing time for a load.
      4. Disable Relationship Mapping: On selection, the child objects related to selected objects are not fetched.
      5. Disable Triggers: To ensure a successful recovery when working with data and metadata, you may choose to disable any triggers you have set. This feature disables Salesforce triggers only. Any managed package triggers are not disabled.
  6. Click Restore Now.
  7. You'll be taken to the Restore Summary screen, which will display the status of the recently triggered restore activity.

More Information

For each restore activity triggered in Vault, you will find the details below:

AttributeDescription
LabelThe label name you assigned for your restore activity.
Click on the Label to find the list of successful/failed metadata and data members that are part of the restore operation. Also, you have the option to Export to save the restored metadata/data info in CSV format locally. 
Backup InfoGet a snapshot of your restore operation
Date/TimeDate and time stamp for your restore operation
DurationTotal time to complete the restore operation
MetaSuccessTotal count of metadata objects successfully restored
MetaFailureTotal count of metadata objects that failed to restore
SuccessRecordsTotal count of data objects successfully restored
FailedRecordsTotal count of data objects that failed to restore
StatusRestore status (success or failure)
ActionsAdditional actions:
  • Restore summary: View the restore summary report
  • Log: Find the log details for your restore operation
  • Abort: For an ongoing replicate operation, you can abort the process in between using the Abort icon

Was this article helpful?