Momoka_Tachibana | 2022-02-25 12:40:02 UTC | #1
Hi,
I would like to set a Decision making task to connect to an operators only between 9am and 5pm JST.
Sorry this might be a silly question but I would like to make sure if the below Time time range expressions is correct (9am and 5pm JST)
Hour(GetCurrentDateTimeUtc())>= 0 and Hour(GetCurrentDateTimeUtc()) <= 8
Thanks for your support.
Jerome.Saint-Marc | 2022-02-25 14:32:41 UTC | #2
Hello,
As JST is UTC+9 and there is no summer/winter times, you can possibly use such expression. But you need to modify the second test in your expression to use < 8 instead of <= 8.
"Hour(GetCurrentDateTimeUtc())>= 0 and Hour(GetCurrentDateTimeUtc()) <= 8" would return true from 9:00.00am JST to 5:59.59pm JST
"Hour(GetCurrentDateTimeUtc())>= 0 and Hour(GetCurrentDateTimeUtc()) < 8" would return true from 9:00.00am JST to 4:59.59pm JST
But note you could also leverage an Evaluate Schedule action in your Architect flow. This would give you more flexibility - if you need to change opened/closed times one day - defining this schedule the Admin UI (Routing - Scheduling) without having to change and to republish the Architect flows.
Regards,
system | 2022-03-28 14:20:17 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 13707