Restoring the Metadata/Data to the Salesforce Org
Last updated
Last updated
This article discusses the procedure for restoring metadata and data to your Salesforce organization and the menu options available for restoring information in Vault.
Salesforce Org registered with Vault.
Backup configured for your Salesforce Org. [Learn More]
At least one backup operation is triggered for your Salesforce Org in Vault.
Login to your Vault account.
Click Restore
from the Vault dashboard page and click on Restore Now
.
On the next screen, select your source Salesforce Org
.
Next, select the restore source
and its configuration
from the drop-down.
Click Get Details
.
The configured list will be displayed based on the restore source and configuration selection.
To restore the source as backup
, select multiple backups for restoration.
For hierarchical backup
and archival
, you can choose only one from the list.
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 copies everything from the source to the destination, including new, updated, and existing data.
EZ-Restore Steps:
Select the backup(s) from the list and click on the EZ Restore
button.
The restore checklists are displayed on the next pop-up screen, which must be considered before proceeding with the restoration operation. Once you're done, click the Got It
button.
On the next screen:
Enter the label
of your choice or leave the auto-generated default label.
Specify the batch size
for components to retrieve records. The max batch size that you can set per batch is 10K. This option helps run large jobs exceeding 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 40 MB. 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.
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.
Next, you can select the criteria for the restore to be performed:
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.
Disable Validation Rules:
Validation rules verify that the data a user enters in a record meets your specified criteria before the user can save the record. On selection, all the validation rules of the Salesforce objects are deactivated, and the data will be transferred from the source to the destination sandbox. Once the restore is done, validation rules are reactivated.
Enable serial mode for Bulk API:
Serial mode processes batch one at a time; however, it increases the processing time for a load.
Disable Relationship Mapping:
The child objects related to selected objects will not be fetched on selection.
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.
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 an entire restore process.
Click Restore Now
.
This option allows you to select specific metadata or data that gets restored only to the target organization.
Select the backup(s) from the list and click on the Selective Restore
button.
The next screen displays the 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 their members) that will be restored.
Under the Metadata
tab, choose the metadata members for each metadata type.
Under the Data
tab, you have multiple configurations to choose from:
Schema:
The schema will allow you to view your selected object's corresponding child objects. With the most recent Vault 23.1 release, we improved the schema representation by showing one level of the child/parent objects at a time. The tree can now be expanded based on your selection rather than the entire tree, which speeds up the download of the schema data and improves the UI.
Important Note:
You may notice in the schema view that some 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 related to the selected object in some other way, you can 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. Click OK
to dismiss the popup notification and return to the previous screen.
Selected Records:
By default, all the records available in the objects will be auto-selected. To choose 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 set.
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.
Selected Fields:
By default, all the fields will be chosen for the objects selected. Clicking “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. The destination field should default be mapped based on the source field name.
Important Note:
The mandatory fields are auto-selected, so you do not have the option to disable them. For example, the ID
field.
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.”
The unchecked fields 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.
Click on Trigger Restore
.
The restore checklists are displayed on the next pop-up screen, which must be considered before proceeding with the restoration operation. Click Got It
to dismiss the popup.
On the next screen:
Enter the label
of your choice or leave the auto-generated default label.
Specify the batch size
for components to retrieve records. The max batch size that you can set per batch is 10K. This option helps run large jobs exceeding 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 40 MB. 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.
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.
Next, select the criteria for the restore to be performed:
Disable Workflows:
On selection, all the workflows of the Salesforce objects are deactivated, and the data will be transferred from the source to the destination sandbox. Once the restore is completed, workflows are reactivated.
Disable Validation Rules:
Validation rules verify that the data a user enters in a record meets your specified criteria before the user can save the record. On selection, all the validation rules of the Salesforce objects are deactivated, and the data will be transferred from the source to the destination sandbox. Once the restore is done, validation rules are reactivated.
Enable serial mode for Bulk API:
Serial mode processes batch one at a time; however, it increases the processing time for a load.
Disable Relationship Mapping:
The child objects related to selected objects are not fetched on selection.
Disable Triggers:
To ensure a successful recovery when working with data and metadata, you may disable any triggers you have set. This feature disables Salesforce triggers only. Any managed package triggers are not disabled.
Click Restore Now
.
You'll be taken to the Restore Summary
screen, which will display the status of the recently triggered restore activity.
For each restore activity triggered in Vault, you will find the details below:
Attribute | Description |
---|---|