Hi everyone,
I am building a flow that post automated messages everytime a new email arrives.
Every new email is a new job and has a deadline: it is always current time + 5 business hours.
So I used the addHours function, and it works as expected:
addHours(convertTimeZone(utcNow(),'UTC','Romance Standard Time'), 5, 'dddd dd MMM yyyy HH:mm')
The result is something like this: Monday 29 May 2023 23:58
But I have 2 issues:
- our business hours are 9am - 5pm, the addHours function simply adds +5 hours, how can I tell the system to exclude any hour between 5pm and 9am?
- how do I exclude Saturdays and Sundays?
Thank you in advance for any piece of information! 😀