Configure Archive Policy for Salesforce Data

Configure archive policies to define which Salesforce records should be archived based on specific criteria. You can configure policies to run on a schedule, set record limits, and include related objects and attachments.

Note

This feature is part of the Commvault Cloud Early Adopter program. The Commvault Cloud Early Adopter program was created to engage customer feedback on specific features. Commvault Cloud works with select customers to discuss, plan, and help deploy the feature release, and to proactively assist with any issues. If you are interested in becoming part of the Commvault Cloud Early Adopter program, please contact us at earlyadopter@commvault.com.

Step 1: Add a Salesforce App

Add an app so that you can perform archive operations on your Salesforce data.

  1. From the Command Center navigation pane, go to Protect > Salesforce.

  2. Go to the Organizations tab, and then click Add organization.

  3. Select Archive.

  4. Enter a name for the Salesforce organization.

  5. Select an archive plan.

  6. For Environment, select Production or Sandbox.

  7. Click Sign in with Salesforce, and then sign in to your Salesforce account.

  8. After Salesforce organization is authenticated, click Close, and then Save.

Step 2: Configure Archive Policy

  1. From the Command Center navigation pane, go to Protect > Salesforce.

  2. Go to the Organizations tab, and click the archive app instance.

  3. Click Policies, and then click Create new policy.

  4. Enter a name for the policy.

  5. Select an existing archive frequency rule (archive plan) or create a new one.

    Need help with creating a frequency rule?
    1. Next to Archive frequency rule, click +.

    2. Enter a name for the rule.

    3. For Archive, click edit button outline grey/gray pencil, specify the criteria, and then click Save.

    4. For Archive window, click edit button outline grey/gray pencil, select a time slot to trigger the archive operation, and then click Save.

    5. Click Save.

  6. Select Salesforce objects and records that you want to archive.

    1. Under Objects under this policy, click Add.

    2. For Root object, select the Salesforce object.

    3. Next to SOQL query, click edit button outline grey/gray pencil.

      You can configure rules and specify the criteria to filter records that you want to archive.

      1. Click Add rule group.

      2. Select the all or any condition for rule group, and then click Add rule.

      3. Select the Field, Condition, and then specify the Value.

      4. For Record limit, specify the maximum number of records of the root object to archive per job, and then click Save.

        For example, if you set a limit of 10 records for Account object, only 10 records of Account object will be archived per job. However, those 10 records may be associated with many child records—such as 20 from Contact, 5 from Opportunity, and 30 from Case—and all of those will be archived if they are related.

      You can specify the Salesforce Object Query Language (SOQL) query to filter records that you want to archive.

      1. Select the SOQL query option.

      2. Specify the query, and then click Save.

    4. To include lookup-relationships when archiving a root object, select the Archive related objects(Lookup relations) check box, and then click Add Child Object.

    5. Select the Child object and fields using which the root object is associated to the child object, and then click Save.

  7. To archive files or documents associated with filtered records, enable the Archive related documents toggle key.

  8. To exclude archiving child records that were accessed or modified recently, specify the number of days in the Dependent object's record protection days field.

    Commvault Cloud checks the Last View Date and Last Modified Date values in Salesforce to exclude such records.

  9. Click Save.

×

Loading...