gs.getMessage() not working in BR

sijiCatherine
Tera Contributor

Hi ,

 

I am trying to apply translation on the task description. For this,  I have tried using gs.getMessage('string') call in the business rule which is displaying only English translation and not the other language translation.

Have updated the translations in the Message table as well in which only English is working.

How can I resolve this issue? 

2 REPLIES 2

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

@sijiCatherine  I recommend to look at the OOtB configuration we provide on HR Tasks that allow for the translations of the Short Description and the Description. If you go to the HR (Task) Template, you will find a "Use global descriptions for translations". This is what facilitates the translation for these objects. This is a documented feature you can find more information here.

 

If my answer has helped with your question, please mark my answer as an accepted solution and give a thumbs up.

Regards,

Mike

shyamkumar VK
Kilo Patron

@sijiCatherine ,

1. Ensure the Key is same for Both English & another Language

2.In getMessage you need to pass the ‘Key’ value of sys ui message

 

Syntax;

gs.getMessage(‘keyvalue’); 


Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar