Use the Hour function.
Hour(GetCurrentDateTimeUtc()) >= 9 and Hour(GetCurrentDateTimeUtc()) < 17
This will return true if the hour is greater than or equal to 9 and less than 17, so from 9:00 am to 4:59 pm.
A very important note: you need to know your timezone offset. GetCurrentDateTimeUtc returns the time in UTC. You are very likely not in that timezone and need to account for your offset. So 9:00 am in UTC is actually 12:00 if your offset is +5 for example.
https://help.mypurecloud.com/articles/datetime-values-in-architect-flows-and-daylight-savings-time-dst-calculations/ has a good discussion of how to account for timezone offsets, as well as Daylight Savings Time.
------------------------------
Melissa Bailey
Genesys - Employees
------------------------------
Original Message:
Sent: 11-28-2018 04:35
From: Oudderhem Mostafa
Subject: Logical for check date and time in call flow ?
Hello,
We have to build a call flow with menu, in each DTMF choise we distribute the interaction to a specific queue, however each queue has different openning hours
I have think to put a logical action in the Architect before each "ACD Transfers" in order to check the openning hours and send the interaction to the queue or to closed message
I have put this expression in the logical action: DayOfWeek(GetCurrentDateTimeUtc()) > 1 and DayOfWeek(GetCurrentDateTimeUtc()) < 7
Means that will check from Monday to Firday, how I can add another control for the hours, (example from 9h00 AM to 17h00 AM) ?
Thank you in advance.
Mostafa
#PlatformAdministration
#Routing(ACD/IVR)
#Telephony
#Unsure/Other