Genesys Cloud - Main

 View Only


Discussion Thread View
  • 1.  Performing a sum on a string collection

    Posted 11 days ago

    I"m probably way over thinking this, but is there a way to do a sum on a string collection? For example, after you've played the list of items in the string, you want to perfromn a sum of all of the items in the string collection. 


    #ConversationalAI(Bots,AgentAssist,etc.)

    ------------------------------
    Rusty Lockett
    MNET LLC
    ------------------------------


  • 2.  RE: Performing a sum on a string collection

    Posted 11 days ago

    Hi Rust, that is a complex scenario.

    You need access to all levels, or export values for many "int".

    An external resource can help you, such as AWS Lamba.

    Att,



    ------------------------------
    Breno Canyggia Ferreira Marreco
    https://www.linkedin.com/in/brenocfm-40b62182/
    ------------------------------



  • 3.  RE: Performing a sum on a string collection
    Best Answer

    Posted 11 days ago

    Actually I was able to accomplish this. 

    1. Perform a loop
    2. Then an update data step
      1. Create a varaiable. Value will be todeciaml(getat(CollectionListVariable1, loopvariable)
      2. Create a variable. Addlist(DecimalCollectionList, VariableInStep2.1)
    3. sum(decimalcollectionlist). 


    ------------------------------
    Rusty Lockett
    MNET LLC
    ------------------------------



  • 4.  RE: Performing a sum on a string collection

    Posted 11 days ago

    Good job!!!

    Att,



    ------------------------------
    Breno Canyggia Ferreira Marreco
    https://www.linkedin.com/in/brenocfm-40b62182/
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources