Can someone help me on how to use the new GetQueueEstimatedWaitTime or FindQueueEstimatedWaitTime found in Architect?
The expression states that this returns it as a Duration value. I want to evaluate the duration and state "if over XX minutes" present this message, if under then present alternative message.
I have created a update data block which uses the below and assigns it as the variable State.est:
GetQueueEstimatedWaitTime(FindQueue("QUEUENAMEHERE"))
Then another, setting the variable as a integer titled 'waittime', I believe this is now returning it as an integer but in seconds: If(IsSet(State.est), ToInt(ToInt(State.est) / 100), 0)
Then a logic switch block that uses the following expression (720 seconds is 12 mins):
State.waittime >= 720
However, basically almost every single customer is getting the message stating the wait time is over 12 mins, even though some are only waiting a couple of seconds and when I use the Est wait time via API rather than via this function the est wait time is often much lower than 12 mins if not 0 or a minus figure. How do I account for the minus or 0 figure and how do I get it to be more accurate?
Cheers,
Eilidh