# Limiting Records To Restore With A Record Filter

Record Filters in CopyStorm/Restore provide an easy way to limit record selection without writing SQL. Following these steps will enable CopyStorm/Restore to restore a specific set of records to Salesforce.

To limit restored records to specific criteria:

1. Select the “Filter” in the “Which Records” dropdown.
2. Click on the empty filter to edit.
3. Create the criteria by dragging and dropping fields and references.
4. Test the filter and validate the criteria.
5. Press “Save” to apply the filter.

## Step 1: Use the Filter Record Selector

![](/files/uIlqkaDcazSsT5F6VGQ3)

To enable filter-based record selection for a table:

1. Select the table in the Restore Set Editor.
2. Update the “Which Records” selector to “Filter”.
3. Click on the “Click Here To Edit” button to open the filter editor.

## Step 2: Add Criteria to the Filter

![](/files/ADzdCyLOGGAxHVyNnWJw)

Edit the filter by dragging and dropping fields and operators from the left-hand side of the dialog into the right-hand tree.

Referenced data can be filtered by expanding reference fields in the field tree.

## Step 3: Edit Filter Criteria

![](/files/bAxoL5HdCMHQs33ZjDfC)

Click on an item in the right-hand filter tree to edit the criteria. Pressing “Save” will save changes in the criteria editor, and pressing “X” will delete the criteria from the filter.

## Step 4: Preview and Save the Filter

![](/files/slzgqZvw3Mqc6Ti8u3Ys)

To test the filter and verify that it is finding the correct records, press the Preview button. This will query the CopyStorm database for a sample set of records that match the criteria and display them in the table.

To view all fields in the query results, select “All Fields” in the “Show” drop-down. To view the SQL query that was generated, press the “Show Query” button.

If the query results are correct, press “Save” to save changes to the filter and close the dialog. To close the dialog without saving changes, press the “Cancel” button.

## Record Filter Reference

![](/files/iOJrHZmZjvIq9WzX5ejU)


---

# 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/copystorm-restore/reference/restore-set-editor-tab/records-to-restore-editor/limiting-records-to-restore-with-a-record-filter.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.
