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

Modifying Calling Number to send to CAD-BE HTTP Action

rowdygardner
Level 1
Level 1

We are using UCCX 8.5 Enhanced licence.

We have CAD-BE Agents set up with a Voice Contact Work Flow for incoming calls that pops up a URL in an integrated browser (using a HTTP Action) that contains the incoming calling number as one of the values. This then pops up a screen with the contact details of the caller, taken from our CRM system.

Unfortunately the Calling Number field from UCCX is in the format 0XXXXXXXXXX. For our pop up to work properly, we need the format to be XXXX XXX XXX. We need to remove the leading 0 and add spaces.

Can anyone provide advice on how to reformat the Calling Number (or populate a Call Variable) so that it removes the leading 0 and adds the spaces?

We could then send this to the HTTP Action instead of the Calling Number and it should popup the contact from CRM correctly.

 

Regards,

Robert Gardner.

 

 

 

 

 

1 Reply 1

Bill Mungaven
Level 1
Level 1

Something like this might work:

String callingNumber

String newCallingNumber

callingNumber = Get Call Contact Info (--Triggering Contact--,Calling Number)

Calling Number: callingNumber
Called Number:
Arrival Type:
Last Redirected Number:
Original Called Number:
Dialed Number:

Set newCallingNumber = callingNumber.substring(1,5) + " " + callingNumber.substring(5,8) + " " + callingNumber.substring(8);

/* Single space between quotes */

/* Formats the number XXXX XXX XXX.

This assumes the length of the Calling Number is 11 characters. Some length check of the calling number would be wise otherwise (try/catch?), this could possibly throw an IndexOutOfBoundsException exception */

Send the newCallingNumber to your CRM. You may need to set a PV or ECC variable to newCallingNumber before exiting this UCCX script before sending it to your CRM.

I'm in a UCCE/ICM/IPIVR environment so I don't know how you would send the information to your CRM in a strictly UCCX environment.

Bill