Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Static Translation on Catalog variables

Priyadharashin1
Tera Contributor

I have an email script to show the variables from the HR Case in the notification, there is also a requirement to show the translation for the variable labels. Below script doesn't work for translation. Even if I use "sys_translated" table to get the translation, not sure how to get the language of the recipient if there are multiple recipients. Please suggest any workaround.

 

 var variables = current.variables.getElements();
 for (var j = 0; j < variables.length; j++) {
        var questionnew = variables[j].getQuestion();
            template.print(questionnew.getLabel() +':' + questionnew.getDisplayValue());
}
0 REPLIES 0