02-14-2020 08:21 AM
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
02-14-2020 01:41 PM
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
02-15-2020 04:24 AM
Thank you. I will check this out.
Regards,
Libin Benedict
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide