10-22-2015 06:38 AM
Hello!
We have Finesse integrated with UCCE. We are passing IVR data to the agent desktop through ECC variables (call variables layout). The string in the ECC is very long and we'd like to format it with line breaks to make it more visually appealing for agents. Is this possible?
ex current:
Call Details: aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbccccccccccccc
ddddddddddddeeeeeeeeeeeefffffffffffffffffffffgggggggggggggg
desired:
Call Details: aaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbb
ccccccccccccc
dddddddddddd
eeeeeeeeeeee
fffffffffffffffffffff
gggggggggggggg
Thanks!
Solved! Go to Solution.
10-22-2015 12:45 PM
I don't think there is any build in way to do what you are asking.
You could get the call variable, then in JavaScript split it.
Here's an example using RegEx.,,,
.match(/(.)\1*/g)
var a = "aaabbbbccc".match(/(.)\1*/g)
// a would be an array of... ["aaa", "bbbb", "ccc"]
10-22-2015 12:45 PM
I don't think there is any build in way to do what you are asking.
You could get the call variable, then in JavaScript split it.
Here's an example using RegEx.,,,
.match(/(.)\1*/g)
var a = "aaabbbbccc".match(/(.)\1*/g)
// a would be an array of... ["aaa", "bbbb", "ccc"]
11-12-2015 08:00 PM
Is it fair to say that you know the length of each part of the ecc variable?
If you did, it would be easy to use a series of substring or splice javascript statements to split apart the item into different variables. To me this sounds like a more realistic example than what you have above.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide