Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Play Audio if value not null

    Posted 01-17-2023 19:43
    No replies, thread closed.
    Lets say I get an array (collection) of numbers returned from a data action.  I want to play the values, IF the values present.  So, if not present, it would move along.  I tried putting in this expression, but it just plays "False"

    IsNotSetOrEmpty(ToAudioCurrency(ToCurrency(Flow.panding_payment[1])))

    If appears if there is no value there, it bombs out, so wondering if a way to avoid that bomb out also.

    I guess the other way to do is a loop around but was thinking there may be other options.  

    Thanks in advance.  

    Clayton
    #ArchitectureandDesign
    #Implementation

    ------------------------------
    Clayton Curtis
    Enova Online Services, Inc.
    ------------------------------


  • 2.  RE: Play Audio if value not null

    Posted 01-17-2023 20:51
    No replies, thread closed.
    OK, how many values have been returned? Your expression is, I believe, looking for the second one (index 1, indexes start at 0).
    If you want to play all the values in a list, with some default values if the list is empty, then you're gonna need to look at the count of items (to see if it's empty). If not, you will need to loop through the list items, I'm afraid.
    HTH

    ------------------------------
    Paul Simpson
    Eventus Solutions Group
    ------------------------------