ToUser requires communicating to the cloud to do a lookup, so currently you can't use it to convert a string to a User data type value.
The RC has more info at
https://help.mypurecloud.com/articles/convert-string-value-typed-value/Specifically:
Does Architect have a function to convert from a string to a network based value type?
Currently, Architect does not include a built-in function that converts a string to a network-based type. Architect does not support this function for various reasons:
- At call flow runtime the resolution of a network-based data type, for example a queue from a string, currently requires a round trip from the edge to the cloud. This scenario can potentially create a lot of network traffic.
- An edge may run while disconnected. In this case, runtime resolution of a string value to a network based value is not possible by calling the cloud.
- In the rare case of two network based objects with the same name, lookup by name becomes ambiguous because the system could return two or more objects with the same name.
Also on the page, the listed solution is to use a parallel collection as a key-value map.
------------------------------
George Ganahl CCXP, GCP
Principal Technology Consultant
Genesys
------------------------------
Original Message:
Sent: 05-20-2019 21:44
From: Greg Beal
Subject: ToUser Function in Expression Editor
Does the ToUser function work? Is there a trick to this function?
I want to use a Data Table lookup and route calls to a PureCloud user based on the variable I set from the Lookup. Everything I try in Expression Editor says "There is no implementation that accepts a parameter of type String".
I would expect it to work just like the ToQueue function.
Anyone ever use this or have any advice?
#ArchitectureandDesign
#Routing(ACD/IVR)
#Unsure/Other
------------------------------
Greg Beal
ConvergeOne
------------------------------