Hi Tausif,
Presuming transfer is required regardless of the time, but the hour affects which queue the agent is supposed to transfer to?
If so, I've recently built something of similar logic via a flow which takes into account time and timezone (UK GMT/BST). The same could be done via a script with the show/hide functionality I guess.
I used 2 variables to get the hour of the interaction as I was needing other aspects of the DateTime generated. 1st identifies time of the year and the actual correct time for your timezone. 2nd just grabs the hour.
Flow.DateTime
AddMinutes(
Flow.StartDateTimeUtc,
If(
Flow.StartDateTimeUtc >= MakeDateTime(
Year(Flow.StartDateTimeUtc),
3,
31 - (DayOfWeek(MakeDateTime(Year(Flow.StartDateTimeUtc), 3, 31, 1, 0, 0)) - 1),
1, 0, 0
)
and
Flow.StartDateTimeUtc < MakeDateTime(
Year(Flow.StartDateTimeUtc),
10,
31 - (DayOfWeek(MakeDateTime(Year(Flow.StartDateTimeUtc), 10, 31, 1, 0, 0)) - 1),
1, 0, 0
),
60,
0
)
)
Flow.Hour
Hour(Flow.DateTime)
You might be able to adapt the above via a transfer to a flow which decides which queue to send the interaction to, or as noted above, use a script to show/hide options based on time.
------------------------------
Kieran Exley
Senior Unified Communications Services Specialist
------------------------------