Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  ToUser Function in Expression Editor

    Posted 05-20-2019 21:44
    No replies, thread closed.
    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
    ------------------------------


  • 2.  RE: ToUser Function in Expression Editor

    Posted 05-20-2019 23:14
    No replies, thread closed.
    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
    ------------------------------



  • 3.  RE: ToUser Function in Expression Editor

    Posted 06-20-2020 00:15
    No replies, thread closed.
    Hi Greg

    A fairly old thread of yours but may I ask how you got the ToQueue function to work along the same type of logic?  I'm looking to get a queue name from a Data Table lookup and use that in a Transfer to ACD function but keeping hitting that same error message you have from the ToUser function.  Did you get something going to be able to dynamically specify a queue for Transfer within a call flow?  

    The resource centre talks about using parallel collections but admittedly I'm not sure I'm understanding that correctly.

    ------------------------------
    Vaun McCarthy
    NTT New Zealand Limited
    ------------------------------



  • 4.  RE: ToUser Function in Expression Editor

    Posted 06-20-2020 06:01
    No replies, thread closed.
    Actually got this sorted now thanks

    ------------------------------
    Vaun McCarthy
    NTT New Zealand Limited
    ------------------------------



  • 5.  RE: ToUser Function in Expression Editor

    Posted 09-01-2020 02:44
    No replies, thread closed.
    Hi Vaun
    Has you resolved with two arrays's solution or in another way - more dinamically may be?

    Thanks
    Luca

    ------------------------------
    Luca Assandro
    Lutech S.p.A.
    ------------------------------



  • 6.  RE: ToUser Function in Expression Editor

    Posted 09-02-2020 03:30
    No replies, thread closed.
    Here a solution: https://community.genesys.com/digestviewer29/viewthread?GroupId=19&MID=3379&CommunityKey=bab95e9c-6bbe-4a13-8ade-8ec0faf733d4&tab=digestviewer

    ------------------------------
    Luca Assandro
    Lutech S.p.A.
    ------------------------------