cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
676
Views
10
Helpful
2
Replies

Using the Switch function in uccx scripting

LibinBenedict
Level 1
Level 1

I am using Switch String () to identify the caller based on the caller ID and provide them the prompt in the appropriate language based on the caller ID.

 

The string I am using here is the caller ID which I have captured as:

 

sCallingNumber = Get Call Contact Info (--Triggering Contact--, CallingNumber)

 

and the below Switch function is used to identify the region of the caller

 

Switch String (sCallingNumber.substring (0,3))

 

if it is "514", provide the IVR in French since this a French-speaking area.

 

Suppose, if the caller ID is "Restricted", how can I handle this?

Since it is not "514", will it match the "Default" part of the Switch where nothing is explicitly defined?

 

Thanks in advance,

Libin Benedict

2 Replies 2

Sean Lynch
Level 7
Level 7

Yes.  When using a switch function (palette item), anytime you have a "no match" scenario where the variable being evaluated does not match a branch output item, the Default output branch is selected and subsequent steps are followed.

Hope this helps.

-Sean

Thank you. I will check this out.

 

Regards,

Libin Benedict