Translation of email notification - gs.getMessage('${comments}')

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi guys,

I need your help please.

I configured the Incident email notification Incident commented for ESS for all the different languages based on the Caller User Language.

Now, I'm testing it and I can't find the reason why the name of the fields in the table generated by the script incident_comments is not getting translated:

find_real_file.png

This is the part of the code in the script incident_comments:

template.print('<p><font size="3" color="#666666" face="arial">' + gs.getMessage('${comments}') + '</font></p>');

Question is: is it possible to get the proper translation based on what defined in the sys_ui_message table using the function gs.getMessage? If not, what do I need to use for doing it?

This is the record in the sys_ui_message table I have:

find_real_file.png

Thanks a lot.

Cheers

Alberto

 

9 REPLIES 9

richa83
Giga Contributor

Hi!

Did you find a solution to this problem?

Regards

Richa

Have a look at this article which I wrote a while back:
Return a message in a specific language, gs.getMessageLang()

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi

I could not find solution to this time stamp and additional comments coming from 'comments' field in your article.

Regards

Richa

@richa83,

If you use the Activity Formatter on your form rather than a Journal list field it should work as you need,

However could you please raise a Case on NowSupport (formally Hi) so we can track it,

Many thanks,
Kind regards 

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

BiancaK
Tera Expert

I am still struggling with this very same issue. Has anyone found a solution yet?