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.
Commvault software does not support archiving certain objects due to Salesforce API restrictions. For a list of Salesforce objects that cannot be archived, see Salesforce Objects Not Included in Backups and Archive.
Step 1: Add a Salesforce App
Add an app so that you can perform archive operations on your Salesforce data.
-
From the Command Center navigation pane, go to Explore > Service catalog.
-
On the Welcome page, in the Salesforce tile, click Configure.
-
Select Archive, and then click Next.
-
Enter a name for the Salesforce organization.
-
For Environment, select Production or Sandbox.
-
Click Sign in with Salesforce, and then sign in to your Salesforce account.
-
After Salesforce organization is authenticated, click Close, and then Next.
-
Select an archive plan. For information on creating an archive plan, see Creating an Archive Plan.
-
Complete the configuration wizard, and then click Create.
Step 2: Configure Archive Policy
-
From the Command Center navigation pane, go to Protect > Salesforce.
-
Go to the Organizations tab, and click the archive app instance.
-
Click Policies, and then click Create new policy.
-
Enter a name for the policy.
-
Select an existing archive frequency rule (archive plan) or click the add button to create new credentials.
Need help with creating a frequency rule?
-
Next to Archive frequency rule, click +.
-
Enter a name for the rule.
-
For Archive, click
, specify the criteria, and then click Save. -
For Archive window, click
, select a time slot to trigger the archive operation, and then click Save. -
Click Save.
-
-
Select Salesforce objects and records that you want to archive.
-
Under Objects under this policy, click Add.
-
For Root object, select the Salesforce object.
-
Next to SOQL query, click
. You can configure rules and specify the criteria to filter records that you want to archive.
-
Click Add rule group.
-
Select the all or any condition for rule group, and then click Add rule.
-
Select the Field, Condition, and then specify the Value.
-
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.
-
Select the SOQL query option.
-
Specify the query, and then click Save.
-
-
To include lookup-relationships when archiving a root object, select the Archive related objects(Lookup relations) check box, and then click Add Child Object.
-
Select the Child object and fields using which the root object is associated to the child object, and then click Save.
-
-
To archive files or documents associated with filtered records, enable the Archive related documents toggle key.
-
To disable validation rules, workflows and triggers to mitigate errors and improve delete operation, enable the ** Disable triggers and rules** toggle key.
After the delete operation completes, the validation rules, workflows and triggers are automatically enabled.
-
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.
The Commvault software checks the Last View Date and Last Modified Date values in Salesforce to exclude such records.
-
Click Save.