Translation in email Notifications

HARIRATHNA U
Tera Contributor

Hi Team,

 

There is a requirement to populate the choices field(State and Resolution code) in Brazilian Portuguese in the email notifications.

Brazilian Portuguese user is able to see the state and resolution code choices in Brazilian Portuguese but the same does not work for email notifications. State and Resolution code field choices show up in English. All other fields in notifications is displays in Brazilian Portuguese except the state and resolution code choice fields which show up in English.

 

How the choice fields can be shown in Brazilian Portuguese language instead of English language?

Your help is highly appreciated.

 

12 REPLIES 12

@HARIRATHNA U 

did you check by actually triggering email for that recipient?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@HARIRATHNA U 

if that doesn't work then you can use email script like this

This should work

var language = gs.getUser().getLanguage();
var message = gs.getMessageLang(current.resolution_code.getDisplayValue(), language);
template.print(message);

AnkurBawiskar_0-1767603636055.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@HARIRATHNA U 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

We tried this but still not working.

Attached the screenshot for your reference. 

HARIRATHNAU_0-1767695403871.pngHARIRATHNAU_1-1767695435058.png

 

@HARIRATHNA U 

how are you calling that email script?

it should work

Did you add log and see email script got called?

anywhere script is breaking?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader