cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
636
Views
0
Helpful
1
Replies

Get Digit - Number Transform

tim.moomaw
Level 1
Level 1

I'm using UCCX 7.01 -

We are implementing a Pay By Phone solution.  When we ask the customer for their statement number the number must be sent to our webservice in the format of 3 integers.  So basically if a customer enters in "3" the system must be able to convert it to "003" also if the customer enters in "03" the system must convert it to "003."  If "13" is entered then it gets converted to "013" and so on....

We do have a consultant who is engineering the Pay by Phone solution but before the project kicks off we internally would like to ensure that UCCX can do the above.  Any ideas?

Thanks.

1 Accepted Solution

Accepted Solutions

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

yes, you can do that - UCCX scripts can be enhanced with Java code so it's fairly simple to do such formatting as well.

You can do it either the poor man's way: first checking the length of the string entered by user and then pad it with zeros, or just use String.format (but this won't support non-numeric DTMF tones) or you can just import Apache Commons StringUtils and let it do the hard work.

G.

View solution in original post

1 Reply 1

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

yes, you can do that - UCCX scripts can be enhanced with Java code so it's fairly simple to do such formatting as well.

You can do it either the poor man's way: first checking the length of the string entered by user and then pad it with zeros, or just use String.format (but this won't support non-numeric DTMF tones) or you can just import Apache Commons StringUtils and let it do the hard work.

G.