Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Get Current Language

    Posted 06-05-2025 19:19

    agilio | 2017-09-16 20:16:30 UTC | #1

    How in Architect can I check the current language that has been set?

    Thanks

    Anthony


    Ullyot_Jim | 2017-09-17 17:24:02 UTC | #2

    Hi Anthony,

    Thanks for the question!

    The current language in which a call flow is running can be retrieved by accessing the Interaction.Language variable. That will return the language tag as a string for the language in which the current call flow is running.

    A couple of things to note:

    1. The characters in the returned language tag string value from Interaction.Language will be all lower case.
    2. If you want to know if the current flow is running in English - United States, we recommend using the System.Languages variable and accessing the tag property off of the language you want to check. Here is an example expression:

    Interaction.Language == System.Languages.enUS.tag

    rather than

    Interaction.Language == "en-us"

    Note: System.Languages.enUS.tag is resolved to the string literal "en-us" at design time so there is no runtime performance penalty to using the lookup variable.

    While not directly related to your question, remember that when you use the Set Language action in a task to change the current call flow language, the change will take effect when the task ends.

    Jim


    agilio | 2017-09-18 15:11:08 UTC | #3

    This is perfect thanks Jim!!


    agilio | 2017-09-18 15:19:29 UTC | #4

    One follow-up question. Is there a Update Data Language Skill Object that I can create to hold the current language. Because of a unique need I need to set the language skill for 30+ ACD transfers otherwise I will need to create a condition for each one and it will become very very messy.


    Ullyot_Jim | 2017-09-19 18:49:09 UTC | #5

    Hi Anthony,

    Glad to hear that first answer is what you were looking for. :slight_smile:

    When it comes to the Language Skill data type, unfortunately is not a type for which you can create a variable that would hold a reference to a Language Skill ( ACD Skill in the Languages category ). In the event using the default language skill defined on the supported languages for the flow doesn't work, which I'm guessing is the case, you'll want to have one instance of the Transfer to ACD action per language skill.

    I'm not sure about your flow design but maybe it's possible to put the criteria for which Transfer to ACD action you want to use in a flow level variable, transfer to a reusable task that is responsible for performing the ACD transfers and in that in a re-usable task you could switch on that flow level variable to pick the right Transfer to ACD action instance with the appropriate Language Skill configured. We recently enabled dynamic case support on the Switch action which would make the task logic slightly easier in that you wouldn't need to have ten switch actions or 30 If actions to determine which Transfer to ACD action to use.

    Jim


    agilio | 2017-09-19 21:21:19 UTC | #6

    Thanks Jim,

    I had to nest a pretty complex list of if statements and then I used the interaction.language with a condition step to basically limit the number of ACD transfers I have.

    AG


    system | 2017-10-20 21:21:21 UTC | #7

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 1804