Adding Filters to Objects
Overview
This guide explains how to add filters to objects in a template to control exactly which records are migrated. Filters let you move only the specific records you need for an object, rather than transferring its entire data set. You can choose between two filter types: Declarative and SOQL.
Declarative: Uses a simple user interface to create filter conditions. You can combine multiple conditions to create more complex filters.
SOQL: Uses an SOQL (Salesforce Object Query Language) WHERE clause to build a complex record filter. SOQL provides greater flexibility and control over which records are included in the data migration.
Add Filters
Select Filter Type
For each object, select the type of filter to add: Declarative or SOQL. Configuring each is explained in the following sections.
Click the object to add filters to.

Click the Filters tab.

Select the type of filter to use.
Declarative: See the following sections:
SOQL: See the following section:
Add Single Declarative Filter Condition
A Declarative filter consists of one or more filter conditions. A filter condition checks whether a record meets a specific rule by comparing a field's value against the filter’s value using a logical operation.
Select Declarative for the filter type.
Click Add Filter to add a new filter condition.

Click the Select field dropdown menu.
(Optional) Enter the field name to search for the field.
Select the field to use for the filter condition.

Click the Select option dropdown menu.
Select the logic operation to use for the filter condition.

Enter a filter Value in the last textbox of the filter condition. This is the value the filter compares to the record's value.
Click Save to save the filter.

Add Multiple Declarative Filter Conditions
Multiple declarative filter conditions can be added to an object. There are two options for combining filter conditions:
Basic Logic
All filter conditions are combined with an AND operation. Meaning all filter conditions must be met.
Custom Logic
With custom logic, you can combine filter conditions by defining your own custom logic using AND, OR, and () operations. Filter conditions are included with their row number. For example 2 AND (1 OR 3) means that the filter is true if condition 2 is met, and either condition 1 or condition 3 is met.
Click Add Filter to add another filter condition.

Complete the filter condition by following the instructions in the section above.

Repeat this process to add as many filter conditions as needed.
Determine how you want the filter conditions combined. See the table above for an explanation of the options. If Basic Logic is used, no other action is necessary.

Use Custom Logic
Click the Logic Selection dropdown menu.
Select Custom logic.

Enter your custom logic in the textbox to the right of the dropdown menu.
Click Save to save the filter.

Add SOQL Filter
The SOQL filter type lets you build complex record filters using a SOQL (Salesforce Object Query Language) WHERE clause. SOQL gives you greater flexibility and control over which records are included in the data migration.
Select SOQL for the filter type.
Enter your SOQL filter statement in the WHERE textbox.

Click Validate SOQL to make sure the filter statement follows valid syntax.

If the filter statement is valid, you receive a "SOQL filter is valid" message.
If there is an issue with the filter statement, the message indicates where the issue is. Fix the issue and validate the filter again.
Click Save to save the filter.

Last updated
Was this helpful?

