# How to Setup a Custom Snapshot Policy

CopyStorm Snapshots are designed so a user can set up new snapshots for a variety of purposes. This tutorial describes a realistic scenario and then walks thru the steps to setup the associated CopyStorm Snapshot Policy.

## The Scenario

The legal team for the *ACME Beach Club* has informed the Salesforce administrator that all Account, Contact, Case, and EMail records related to the account *Evil Empire* need to be retained and any future changes also need to be retained. To prepare for this situation the Salesforce administrator has already added a formula column in Salesforce, LegalArchivalSet\_\_c, that will evaluate to the string “EvilEmpire” for all of the records the legal team wants to be retained.

The next few sections walk to the steps to setup a CopyStorm snapshot for “Evil Empire” records.

## Create a Snapshot

The first step is to create a new snapshot that will only include tables that the legal department indicated.

* Set up the top level parameters for the snapshot including a snapshot policy name and description
* Change the filter type to use a column expression and only grab records where the LegalArchiveType\_\_c value is “EvilEmpire”

![](/files/LJv1r3py3Fvpyv57vlwO)

![](/files/lJOWhKF7fgTbDJMpFf9z)

## Add Existing Records to the New Policy

Check the “active” box, save changes and the snapshot rule will automatically include “Evil Empire” records that are modified in the future. The next step will force a snapshot of all historical “Evil Empire” records.

![](/files/NASezXqdcTqklFsVrBUx)

![](/files/t76Tabhq8SLYwLrR27Nb)

## Next Steps

At this point the “Evil Empire” snapshot policy is active and will automatically include future activity in Salesforce. For addition information see:

* [How to Export Data from a Snapshot](/frequently-asked-questions/how-do-copystorm-archives-work/how-to-export-data-from-an-archive.md)
* [The Snapshot Policy Editor](/reference/archive-tab/archive-policy-editor.md)
* [How Do CopyStorm Snapshots Work](/frequently-asked-questions/how-do-copystorm-archives-work.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.capstorm.com/frequently-asked-questions/how-do-copystorm-archives-work/how-to-setup-a-custom-archive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
