Skip main navigation (Press Enter).
Log in
Toggle navigation
Home
Communities
My Communities
All Communities
Directory
Events
Browse
Discussion Posts
Library Entries
Log in
Genesys Cloud - Main
×
Community Home
Discussion
57.8K
Library
1.3K
Blogs
0
Events
0
Members
6.7K
View Only
Sign Up
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
Next line command for Dynamic script variables to append DNC list
Eric Allen
08-11-2021 13:27
I am trying to create a button that will add four numbers on a script to a DNC list. I have tried multiple ...
Chad McCormick
08-11-2021 14:30
From our awesome dev lead for agent scripts comes a workaround: Scripts do not support arrays yet and ...
Eric Allen
08-11-2021 14:35
Thank you @Chad McCormick ------------------------------ Eric Allen Vervent, Inc. ------------------------------ ...
Thread closed by the administrator, not accepting new replies.
1.
Next line command for Dynamic script variables to append DNC list
Like
Eric Allen
50 Posts
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
Like
Chad McCormick
Genesys
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
------------------------------
Original Message
Original Message:
Sent: 08-11-2021 13:27
From: Eric Allen
Subject: Next line command for Dynamic script variables to append DNC list
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.
------------------------------
3.
RE: Next line command for Dynamic script variables to append DNC list
Like
Eric Allen
50 Posts
Posted 08-11-2021 14:35
No replies, thread closed.
Thank you
@Chad McCormick
------------------------------
Eric Allen
Vervent, Inc.
------------------------------
Original Message
Original Message:
Sent: 08-11-2021 14:29
From: Chad McCormick
Subject: Next line command for Dynamic script variables to append DNC list
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
Original Message:
Sent: 08-11-2021 13:27
From: Eric Allen
Subject: Next line command for Dynamic script variables to append DNC list
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.
------------------------------
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Related Content
Set a DNC expiration date based on Inbound interaction
Eric Allen
Added 08-18-2021
Discussion Thread
1
Convert Scripter.Customer Formatted Number to 10 digit phone number
Daniel White
Added 11-19-2024
Discussion Thread
3
pub sub
Dario Torres
Added 02-09-2022
Discussion Thread
2
Adaptation on number of "Scripter.customer Formatted Number" over data action
Mostafa Oudderhem
Added 10-30-2018
Discussion Thread
3
Script Variable Date Format
Katia Fernandez
Added 10-25-2022
Discussion Thread
3
Copyright© 2025 Genesys
. All rights reserved.
Terms of Use
|
Privacy Policy
Copyright 2025. All rights reserved.
Powered by Higher Logic