Genesys Cloud - Main

 View Only

Sign Up

Expand all | Collapse all

Is it possible to add a phone number to the DNC list using a Script?

  Thread closed by the administrator, not accepting new replies.
  • 1.  Is it possible to add a phone number to the DNC list using a Script?

    Posted 03-25-2019 14:02
    No replies, thread closed.
    Hi, I see it's possible to update the dialer (outbound dialing) contact list using the Update Contact Data control however I wonder if it's possible to also add a new phone number to the DNC list from the script.

    Thanks,

    Henry
    #Outbound

    ------------------------------
    Henry Zambrano
    Powernet Global Telecommunications
    ------------------------------


  • 2.  RE: Is it possible to add a phone number to the DNC list using a Script?

    Posted 03-27-2019 23:51
    No replies, thread closed.
    I can suggest you use the Developer tools to manually add numbers outside of a script
    You will need to gather the contact list ID for the DNC list and then use Add Phone Numbers to Dialer DNC List.
    To ensure the number has been added, I enter it twice 1. with the international prefix without the + symbol and the 2. without the international prefix

    ------------------------------
    Darryn Chang
    Stuff Limited
    New Zealand
    2 Years Purecloud
    ------------------------------



  • 3.  RE: Is it possible to add a phone number to the DNC list using a Script?

    Posted 04-01-2019 14:21
    No replies, thread closed.
    Thanks Darryn, that seems to be the only way to do it.

    Regards,
    Henry

    ------------------------------
    Henry Zambrano
    Powernet Global Telecommunications
    ------------------------------



  • 4.  RE: Is it possible to add a phone number to the DNC list using a Script?
    Best Answer

    Posted 04-02-2019 10:30
      |   view attached
    No replies, thread closed.
    Hi Henry!

    You can use the Add to DNC List action inside the script.  Please see this article in the resource center: https://help.mypurecloud.com/articles/available-script-actions/



    ------------------------------
    Chad McCormick
    Genesys - Employees
    Sr. Product Manager
    ------------------------------



  • 5.  RE: Is it possible to add a phone number to the DNC list using a Script?

    Posted 04-02-2019 11:31
    No replies, thread closed.
    Thank you Chad! It works perfect.

    Regards,
    Henry

    ------------------------------
    Henry Zambrano
    Powernet Global Telecommunications
    ------------------------------



  • 6.  RE: Is it possible to add a phone number to the DNC list using a Script?

    Posted 04-02-2019 11:36
    No replies, thread closed.
    You're welcome, I'm sorry I didn't see your post sooner!

    ------------------------------
    Chad McCormick
    Genesys - Employees
    Sr. Product Manager
    ------------------------------



  • 7.  RE: Is it possible to add a phone number to the DNC list using a Script?

    Posted 08-11-2021 13:47
    No replies, thread closed.
    @Chad McCormick
    Is it possible to create a single DNC button mapped to multiple numbers on the script? If so, what is the next line delimiter? This relates to the topic I created Next line command for Dynamic script variables to append DNC list.

    Thank you,​

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



  • 8.  RE: Is it possible to add a phone number to the DNC list using a Script?

    Posted 08-11-2021 13:53
    No replies, thread closed.
    I'll see if I can find out for you

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



  • 9.  RE: Is it possible to add a phone number to the DNC list using a Script?

    Posted 08-11-2021 14:29
    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
    ------------------------------



  • 10.  RE: Is it possible to add a phone number to the DNC list using a Script?

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

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