Filtering which records sync
Not every record from a source should reach the target. A filter is a condition (or several, ANDed together) that a record must pass before it's mapped and written -- the same job Zapier's "Filter" step does, without adding a new expression language on top of Pravadh MW's plain YAML flows.
Writing a filter
In the flow form's manual mapping box, add one condition per line:
Amount > 50000
StageName = Closed Won
Email is_not_null
Supported operators: = / == (equals), != / <> (not equals), >,
>=, <, <=, contains, is_null, is_not_null. Multiple lines are
ANDed -- there's no OR. If you need "either of these," that's two
separate flows from the same source, each with its own filter.
Or just describe it
If you'd rather not write the condition yourself, tell the agent what you want in plain language ("only sync Opportunities that are Closed Won") and it will infer the filter for you -- see Building your first flow with the agent.
What happens at runtime
On each run, records are read from the source first, then filtered, then mapped and written. The run's result tells you how many records were read versus how many were actually written, so a filter that's quietly dropping everything is visible immediately rather than a mystery.
What's next
- Avoiding duplicate records
- Starting from a template --
sync_high_value_opportunitiesis a ready-made example using a filter