Loading...

Seeding a Salesforce Sandbox

Salesforce provides a sandbox that you can use for testing and demo purposes. You can populate (seed) the sandbox with a Commvault backup from your production Salesforce data or another Salesforce sandbox. Data is restored from a local (sync) database.

Perform granular seeding by configuring rules that specify the object that you want to seed and the object records to use for the seeding. If you would like to seed multiple objects which are not related, you must run separate restores for each object, including their children.

You can specify any of the following records:

  • All records
  • Records that are returned from a user-defined SQL query
  • Records that have been backed up in the last N number of days
  • The most recently backed up N records

Before You Begin

  • Verify that the Salesforce user who performs the restores has the following permissions:
    • A System Administrator profile or an equivalent profile
    • Read/write/modify access to the objects involved
  • If you want to mask sensitive data during the restore, configure data-masking policies. For more information, see Data Masking.

Procedure

  1. From the navigation pane, go to Protect > Applications > Cloud apps > Salesforce.

    The Apps page appears.

  2. In the Restore column, click Restore.
    • If multiple instances are backed up, the Restore dialog box appears.
    • If one instance is backed up, the Select restore type page appears.
  3. If multiple instances are backed up, expand the instances, select the data that you want to restore, and then click Select Content.

    The Select restore type page appears.

  4. Select Sandbox seeding.

    The Sandbox seeding page appears.

  5. To determine which objects are used for seeding the Salesforce sandbox, create the seeding rules:
    1. From the Object list, select the object that you want to seed.
    2. Click Pick rule/enter query.

      The Add rule dialog box appears.

    3. In the Selection criteria area, choose the records that the software adds to the sandbox:
      • To add all records, select All records.
      • To define a filter by using SQL, select SQL where clause.
      • To define a number of days, select Records updated in the last N days, and then in the Last N days box, enter the number of days.
      • To define the number of records, select Most recently updated N records, and then in the Number of records box, enter the number of records.
    4. To include parent objects in the restore, from the Parent objects to restore list, select All parents.

      Important: Including parent objects has the following effects:

      • Data integrity is maintained. If parent objects are included and some parents do not exist or some parents have incorrect values, restore operations will complete.
      • When objects such as User objects are updated, end users will receive notifications, which may not be desirable.
    5. To include child objects in the restore, from the Child objects to restore list, select the child objects.
      • To exclude some child objects, select the Exclude children check box, and then in the Children to exclude box, select the child objects that you want to exclude.
    6. Optional: To view the records, click Preview.
    7. Click OK.
  6. Optional: Create seeding rules for additional objects.
  7. After all of the seeding rules are created, click Restore.

    The Restore options dialog box appears.

  8. Under Destination details, provide the destination information:
    1. From the Destination server list, select the server that hosts the Salesforce destination instance.
    2. From the Destination instance list, select the Salesforce instance.
  9. To disable the Salesforce triggers and rules, select the Disable triggers and rules check box.

    After the restore is complete, the workflows and triggers are automatically enabled.

  10. To apply data masking, select the Apply masking on destination check box, and then from the Select data masking policy list, select the data-masking policy.

    Note: Data masking can be applied when a cross-instance restore is run and data masking policies are defined.

  11. Click Submit.

Result

After the operation completes, the destination sandbox contains the records that meet the rules that you configured.

Related Topics

Last modified: 10/16/2019 9:16:49 PM