Kimppis | 2020-02-13 07:45:06 UTC | #1
Hi,
any ideas how to build either 50/50 or adjustable %-routing in PureCloud?
The need is to route calls to internal queue or to external service provider in adjustable ratio or 50/50.
Has anyone bumbed similar issue and solved it?
-Kimppis-
anon28066628 | 2020-02-13 16:53:20 UTC | #2
Hi Kimppis, one approach is using the seconds or milliseconds value of the UtcFlowStartTime variable (please look up the exact var name...). You can use modulus division by 2 (or any number N) to get a semi-random value between 0 and (N-1), then route based on that number or a range of numbers with switch/case.
You could also use a Data Action to get a random value, though this introduces a dependency on a REST service.
https://help.mypurecloud.com/articles/operator-precedence-expressions/
tim.smith | 2020-02-13 17:55:18 UTC | #3
Just a heads up, this forum is for questions and discussions regarding API usage and customizations. General PureCloud configuration and usage questions are better suited for the PureCloud Community Forum.
system | 2020-03-15 17:57:51 UTC | #4
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: 7118