Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Input/Switch Node

    Posted 08-16-2024 16:33
    No replies, thread closed.

    Can the Caller Entered Digits for a Case Leg be multiple length?  "99" or "9999"  etc

    Thx

    TSB


    #ArchitectureandDesign

    ------------------------------
    Tim Strong Bear
    Senture, LLC
    ------------------------------


  • 2.  RE: Input/Switch Node
    Best Answer

    Posted 08-16-2024 18:04
    Edited by Cameron Tomlin 08-19-2024 11:35
    No replies, thread closed.

    You can do following expressions in switch case

    Task.Input == "99"

    OR

    Task.Input == "9999"



    ------------------------------
    Cheers
    Zubair
    ------------------------------



  • 3.  RE: Input/Switch Node

    Posted 08-20-2024 15:58
    No replies, thread closed.

    Please see this idea. It proposes expanding the Switch statement to work more in line with how it does in other languages, by adding multiple conditions to a single Case, which would prevent the need for these expressions (which make it much harder to follow when debugging Flows!)



    ------------------------------
    Paul Simpson
    Views expressed are my own and do not necessarily reflect those of my employer.
    ------------------------------



  • 4.  RE: Input/Switch Node

    Posted 08-19-2024 07:27
    Edited by Niel Vicente 08-19-2024 08:56
    No replies, thread closed.

    Hi Tim,

    EDIT:

    Read this wrong. Zubair's answer above works. Each Case leg can have an entire expression on it own and you can join multiple validations.

    You can also check the length based on range:

    Length(Task.input)>=2 or Length(Task.input) <= 4

    ------------------------------------------------------------------------------------------

    For the collect input action, there is an option to either set EXACT or RANGE of digits for customer input.

    Collect Input action - Genesys Cloud Resource Center (mypurecloud.com)




    ------------------------------
    Niel Vicente
    DAMAC Properties Co. LLC
    ------------------------------