Converting from a string variable to a language variable
Is there a way to convert from a variable of type string to a variable of type language in a UCCX script?
What I'm trying to do is to read a list of language supported by a specific customer service script from an XML file (the variables will be in the valud "en_US" or de_DE" format). This is to avoid making changes in the script every time new language support is added or removed (customer can just modify the XML file). Then inside the script I want to convert the string value to the language value (i.e., "en_US" to "L[en_US") and put the latter into Set Contact Info step, etc.
I can't find a language method that would work in this situation.
None of my testing was able to do this.
Would setting the language on the trigger instead work? At that point you can get the current language as a language, and that is pretty easy to convert to a string if you need it in that format.
Thank you very much for your reply and a great example. It was unclear to me at first why you had to use an array. After testing it both ways (1 - by providing my_array into the my_language = new Language constructor and 2 - by providing my_string string variable), I realised that using the string variable results in a language variable being all lower case (L[fr_fr] instead of L[fr_FR]), and apparently UCCX does not treat that as a valid language and defaults to US English (in my case at least, since it is the default).
Thanks again, this constructor works seamlessly at converting string to language.
You have reached the Cisco Logistics Support Center.. To Check Status of
your RMA, visit Product Returns & Replacements (RMA). Need help? Contact
us by Phone or Email. North Americas Phone: 1800 553 2447 Option 4
Email: firstname.lastname@example.org Europe Phone: +3...
The short answer is that you don't.... That isn't entirely true while at
the same time it kind of is, but for the most part you don't configure
the softkeys. You enable or disable them via TCL. Here is the long
answer. Be sure to read the whole thing or e...
Topology: IP Phone > Switches > Microsoft NPS setup to forward 802.1x
proxy to > ISE 2.1 patch 3 Authentication: EAP-TLS using Cisco MIC SANs
Phone Models 802.1X support? 802.1x flavor Addtl Comment EAP-MD5 EAP-TLS
Cisco 3905 Y Y N Cisco 6911 Y Y N Cisco ...