cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
831
Views
0
Helpful
3
Replies

Wild card assistance in UCCX script for calling number

I have created a script (version 11.5), based upon the calling number call should redirect to Supervisors.

I am not able to figure out yet that how I can use wild card for calling number in IF statement. 

 

Suppose My IF condition is callingNumber=="1697" || callingNumber=="4710" then it would redirect the call to supervisor Hunt.

 

But I want to use here wild card instead of exact match, Suppose call comes from +91172434 1697 then this condition should match based upon on last 4 digits of calling number regardless the prefix but using above syntax it is not matching

what wild card or syntax i need to use in the script to full fill my requirement?

I have attached the script in this post

2 Accepted Solutions

Accepted Solutions

Sean Lynch
Level 7
Level 7

Pasharma:

 

Since you are doing a [boolean] logic evaluation you can probably use the " .endsWith()" javascript tool under the Editor:

2018-0927-EndsWith2.png 

 

To make the following changes:

 

2018-0927-EndsWith.PNG

 

Let me know if this helps.

 

Sincerely,

-Sean

 

 

View solution in original post

3 Replies 3

Sean Lynch
Level 7
Level 7

Pasharma:

 

Since you are doing a [boolean] logic evaluation you can probably use the " .endsWith()" javascript tool under the Editor:

2018-0927-EndsWith2.png 

 

To make the following changes:

 

2018-0927-EndsWith.PNG

 

Let me know if this helps.

 

Sincerely,

-Sean

 

 

Thanks Sean! It worked

You're welcome.

 

-Sean