Merge filters allow you to control which records are included in batch merge operations. This guide explains how to create and apply filters to ensure you're merging the right records every time.
Merge filters are criteria-based rules that select specific records for document generation. Instead of merging all records, filters let you target:
Choose the Salesforce object you want to filter (Account, Contact, Opportunity, etc.). This should match the object your template is designed for.
Add conditions using field comparisons:
Combine multiple criteria using AND/OR logic:
Example: To find high-value opportunities in California: Amount > 50000 AND BillingState = "CA"
Fixed criteria that don't change. Example: All accounts where Industry equals "Technology".
Criteria that use relative dates or current user context:
CreatedDate = THIS_MONTHOwnerId = CURRENT_USERLastModifiedDate = LAST_N_DAYS:30Use existing Salesforce list views as filters. Magic Merge will process all records visible in the selected list view.
Filter based on related object fields:
Account.AnnualRevenue > 1000000Opportunity.Owner.Profile.Name = "Sales Manager"Use Salesforce formula syntax for complex conditions:
IF(Amount > 50000, "Yes", "No") = "Yes"
Filter records within specific time periods:
Before running a merge job, test your filter:
Best Practice: Always preview filter results before running large merge jobs to avoid processing incorrect records.
When creating a merge job:
Save frequently used filters for quick access. Give them descriptive names like "High_Value_CA_Opportunities" or "Monthly_Active_Accounts".
Share filters with your team or keep them private. Admins can create organization-wide filters for common use cases.
Modify existing filters at any time. Changes don't affect previously completed merge jobs, only future operations.
Filters can return any number of records, but merge job limits depend on your subscription plan. Large result sets are processed in batches automatically.
Yes, as long as the templates and filter are for the same object type. A filter for Accounts can be used with any Account template.
Yes. Filters only return records the running user has permission to view based on Salesforce sharing settings.
Need Help? If you need assistance creating complex filters or troubleshooting filter results, contact our support team for guidance.