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.

Alternative to gs.getMessageLang()

Neil5
Tera Contributor

gs.getMessageLang() checks the UI Message table [sys_ui_message]. Is there an alternative way to check for translation from the Translated Name / Field [sys_translated] or Translated Text [sys_translated_text] tables?

Most custom translations or translation done through localization framework are stored here. It would be helpful if there is command for it.

3 REPLIES 3

Allen Andreas
Tera Patron

Hi,

Are you perhaps referring to?

gs.getMessage()

What other alternatives are you looking for or why if this is working, etc.

Alternatively, there's: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0749769

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

gs.getMessageLang() works but it only gets it's translated text from UI Message table [sys_ui_message]. If you have custom translations using the localization framework, like Catalog item names, translations are located on another table.

I replied quickly before I read the article you posted 🙂

But it may serve my purpose. I'll try it. Thanks.