Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Scripting

    Posted 02-14-2020 05:45
    Hello,

    Would it be possible to use a line break for long strings in script ?

    I have a string variable holding notes : "notes1 / note2 / notes3..."

    I would like to split these notes and display something like this :
    "note1"
    "note2"
    "note3"
    ...


    Best regards,
    #Unsure/Other

    ------------------------------
    Charaf Eddine Chemlal
    NTT France
    ------------------------------


  • 2.  RE: Scripting

    Posted 02-16-2020 07:29
    Edited by Sajid Abbas 02-16-2020 07:32
    Not sure if it will solve your problem but I once had to do some computations and concatenations of the results in on string. I used dynamic variables to accomplish this. Details here -> Dynamic Variables

    Also Purecloud uses Javascript's MathJS library whose documentation is here --> MathJS Documentation

    May be a combination of Javascript's text manipulation techniques  (Text Manipulation) , MathJS parsing and Dynamic Variables do the trick for you.

    ------------------------------
    Cheers,
    Sajid Abbas Malek
    Al-Futtaim Technologies - Dubai
    ------------------------------



Need Help finding something?

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