I’d like to send an email (using the email_me step) if a condition from a previous step is true. I’ve read on this board that each step in Pipeflow is node and to create a conditional, simply edit the code for a given step. My problem is - I can’t figure out how to edit the code for the email_me step. Should I get the source from github and use it in a new node step? Thanks!
Hi @dplescia ,
First off, welcome to the Pipedream community. Happy to have you!
This is a perfect use case for a brand new built-in action we just released called Filter.
Instead of editing the source code for the Email Me action, add a step prior that will exit the workflow early unless a condition is met.
So the flow would be:
- Trigger
- Filter (excluding certain conditions)
- Email me
Below is an example of this new action. In the example it’s configured to only continue processing the workflow if the prior step called sample_step
includes a condition
export that’s truthy:
Hope this helps!
1 Like