cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
170
Views
10
Helpful
2
Replies
Highlighted
Beginner

Using the Switch function in uccx scripting

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

Everyone's tags (1)
2 REPLIES 2
Highlighted
Participant

Re: Using the Switch function in uccx scripting

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

Highlighted
Beginner

Re: Using the Switch function in uccx scripting

Thank you. I will check this out.

 

Regards,

Libin Benedict

CreatePlease to create content