Implementing Paths for Smart Routing
Sveip for å vise menyen
Building on the email recorder Zap from earlier sessions, you will add paths to separate incoming emails by source, Gmail emails go to one spreadsheet, while Yahoo (Y7) emails go to another. This demonstrates the fundamental path pattern: same trigger, different destinations based on data.
Adding path
Paths must be inserted before the point where workflows diverge. Since emails need to go to different spreadsheets, place the Path step above the Google Sheets action.
Click Add step above on the Google Sheets action. When you add a Path there, Zapier warns that all following steps will move into the first path. That's exactly what you want, the existing Google Sheets action becomes Path A.
Rename paths immediately and make them descriptive. Clear names let you understand the Zap at a glance.
Configuring the Paths
For each path, set conditions using the formatted (uppercase) sender email, for example the Gmail path checks whether the sender contains GMAIL.COM, while the Y7 path checks for Y7MAIL.COM or YAHOO.COM. Each path has its own Google Sheets action, actions are not shared between paths and must be configured separately.
How the Routing Works
If conditions are set correctly, only the matching path runs. Gmail emails are written to the Gmail sheet, Y7 emails to the Y7 sheet, and emails from other domains do not trigger any action unless you add a fallback path.
Formatter Connection
The Formatter ensures consistent matching by converting emails to uppercase. Path conditions must always match the transformed data, not the original input.
Testing
After publishing the Zap, test with emails from different domains and verify that each entry appears only in the correct spreadsheet. Use Zap history to confirm which paths ran.
Paths make it easy to add routing to existing Zaps without rebuilding them. Each path is independent, conditions must match transformed data, and overlapping conditions can cause multiple paths to run. This pattern scales well as you add more routing rules or destinations.
Takk for tilbakemeldingene dine!
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår