Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Next line command for Dynamic script variables to append DNC list

    Posted 08-11-2021 13:27
    No replies, thread closed.
    I am trying to create a button that will add four numbers on a script to a DNC list. I have tried multiple methods of doing a new line function. I have tried the following formats:

    {{EnterPhone3}} \\ {{EnterPhone2}} \\ {{EnterPhone1}} \\ {{Scripter.Customer Formatted Number}} // (Error)

    {{Scripter.Customer Formatted Number}}\\{{EnterPhone1}}\\{{EnterPhone2}}\\{{EnterPhone3}} // (No update)

    {{Scripter.Customer Formatted Number}}\n{{EnterPhone1}}\n{{EnterPhone2}}\n{{EnterPhone3}} // (no update)

    {{Scripter.Customer Formatted Number}},
    {{EnterPhone1}},
    {{EnterPhone2}},
    {{EnterPhone3}}, // no update

    With each attempt Genesys says that the contacts have been successfully added to the DNC list tied to the button but there is no change.

    I can do a button per phone but for ease of use for the agent I would like to have a singular button. I saw that the pubs stated that functions are "based on Mathjs" so I don't get why the data is not appending the DNC list.

    #Outbound
    #Unsure/Other

    ------------------------------
    Eric Allen
    Vervent, Inc.
    ------------------------------


  • 2.  RE: Next line command for Dynamic script variables to append DNC list

    Posted 08-11-2021 14:30
    No replies, thread closed.
    From our awesome dev lead for agent scripts comes a workaround:

    Scripts do not support arrays yet and so we treat the value sent as a single string and so you cannot do more than one number per action. If you want to do this in one button click just make a custom action that does "add to DNC" as many times as you need with all the numbers. In that way you make one button click and the custom action will fire and do all the api calls you need to do.


    ------------------------------
    Chad McCormick
    Genesys - Employees
    Sr PM
    ------------------------------



  • 3.  RE: Next line command for Dynamic script variables to append DNC list

    Posted 08-11-2021 14:35
    No replies, thread closed.
    Thank you @Chad McCormick

    ------------------------------
    Eric Allen
    Vervent, Inc.
    ------------------------------