I’m currently trying to set up an automation that only triggers during working hours, and ‘banks’ any non-triggered actions until the next working day. I.e. it only trigger between 9am and 5pm, and anything that would normally trigger it at 6pm is held until 9am the next working day.
I think I have a working solution, but would be interested to hear if anyone can think of anything better/simpler?
The context is a quality assurance process where an assessor completes an Airtable form, and when the form is submitted the assessee automatically receives an email with the results. Currently I have an email automation set up to just trigger when a new record is created (from the form).
My idea for how to limit the automation to working hours is:
Create a new formula field (called “hour”) that returns HOUR(NOW())
Create a new text field called “results sent?”
Create a view called “automation” that is filtered to only include records where the Hour is between 9 and 16, AND records where “results sent?” includes ‘yes’
Create an automation that:
Triggers when records enter the “automation view”
Sends assessee the results of their assessment
Updates the “results sent?” field of the record to ‘yes’
I’m pretty sure this would work, although I haven’t tested it yet. Downsides are that everything would go out of sync by an hour during daylight savings time. It’s also more complicated/obtuse than a straightforward automation, and I’m conscious of not wanting to build things where only I know how they work.
(change the timezone references as appropriate for your region)
That will calculate a time within the 9 o’clock hour on the next workday based on the created time of the record, and compare that against NOW(). When NOW() passes that calculated time, the formula will output a 1; otherwise it will output a 0. Set your automation to fire when any record outputs a 1 from that formula field, which will only happen once per record.