Help

Run Zaps on specific days or times with filters

tutorial
Last updated:

Filters can be used to narrow the time that your Zap runs when it is triggered. There are two important factors to consider:

  1. How the trigger app provides date/time information. Depending on the format, the Zap may not be able to filter by day and/or time.
  2. If you set up a Zap to do this, any tasks that come through outside the time set by your filters will not cause the Zap to run.

1. Run Zaps on specific days

If your Trigger data includes the day of the week in any of the fields, you can have your Zap only Trigger on certain days. For example, here is how Gmail passes along the date and time:

Gmail timestamp

Since days of the week are present, they can be used in the filter. If a Zap were being set up to only Trigger on Fridays, the filter would look like this:

Friday filter

The "contains" condition is used because there will be other date/timestamp information coming from the field, The "exactly matches" condition would prevent the data from passing the filter conditions in this scenario.

To have your Zap only trigger on weekdays, the filters would look like this:

Weekend filters

"AND" are used because both filters need to be true in order for the Zap to not Trigger on weekends. Using an "OR" filter would trigger the Zap all 7 days of the week because one filter condition would always be true, and therefore allow the Zap to continue to the next step.


2. Run Zaps between specific dates and times

If your Trigger sends along a date and time field, you can use the "After Date/Time" and "Before Date/Time" filters to specify a date and time range. The tricky part to remember is that the Date/Time filter is going to look for a full date and time - you can't specify one or the other.

In this example, the Zap will only continue to the next step if the Trigger was updated between 2015-08-15 3:00 AM and 2015-08-25 7:00 AM.

date and time range in a filter


3. Run Zaps when a due date is reached

If you wanted to check out a "Due Date' that is being passed from a trigger, and only wanted a Zap to fire when that date matches today's date, you can use the Filter action to accomplish this.

First, you will want to generate a timestamp for today to be used in comparison in the following steps. Using our Dynamic Time Modification options, generating this timestamp is simple:

time_stamp

This would take in the long form time and date from our Zap Meta Human Now modification and output a simple MM/DD/YY set to today's date. We'll then combine this with another Formatter step to compare the input date from the trigger (our task's due date in this example) to this new, standardized date.

Using the Spreadsheet-like Formula formatter step, we can do a simple IF/THEN-like comparison of the date that we generated above, relative to the due date of the trigger we want to match:

if-then

Finally, we add a filter step that checks the output of that formula for it's true or false value. If the output is true that means that the input date matches today's date and we do want the Zap to continue running:

true


Was this doc helpful?

Need More Help?

Zapier Support

Contact our world class support team and we’ll be happy to help you get up and running!
Contact Us

Hire an Expert

We have a directory of professionals across the globe who are ready to help.
Find a Zapier Expert