Email Notification in different languages

gowthamanbalu
Tera Contributor

Hi Team,

I thought of seeking help/advice from this group on one of the requirements I received.

Here it goes.

As We have diverse clients across geographical locations, ServiceNow email Notifications should be sent in the language selected in user profile (Only user prefers to receive notifications in their language).

1. Rather creating multiple notifications (i.e. Having same notifications in different languages), could we dynamically translate the notification content to the selected language? - ( I agree, it's a invalid ask)

2. If we have multiple notifications (i.e. Having same notifications in different languages), how could we handle and relate them to user profile?

3. Do we have any other alternate method to fulfill this requirement!! Thanks for looking into this!!

Regards, GB

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Another option is to go with multiple notifications. I did this as a customer. All my notifications were triggered by events. For example the event my_table.record.assigned_to_me would trigger three, one in English, one in Spanish, and one in Chinese.



Notifications were named something like this (with corresponding subjects and bodies)



Assigned to me - EN


Assigned to me - ES


Assigned to me - ZH



Then, each of the three would respond to the event, but the filter did a simple check to see which one actually gets sent.



Example: Assigned to me - EN condition would be


Condition: Assigned to.Language | is | English



It made adding another language pretty straight forward when it came to translating notifications. No scripting involved (aside from the BRs that trigger the event.)



Email Notifications - ServiceNow Wiki


View solution in original post

16 REPLIES 16

swati38
Tera Expert

activate the required language plugins in service now.


Use gs.getMessage(string,'key') method to translate the string.


you can use glide record to query user preference


Thanks Swati!



I think I am doing some syntax mistake on this function.


My Message key is "test_gb", Language is Japanese, Message is "I am from Japan".


I used the getMessage as shown below. Please let me know where I am doing wrong.



gs.getMessage("I am from Japan", 'test_gb');




- GB


Chuck Tomasi
Tera Patron

Another option is to go with multiple notifications. I did this as a customer. All my notifications were triggered by events. For example the event my_table.record.assigned_to_me would trigger three, one in English, one in Spanish, and one in Chinese.



Notifications were named something like this (with corresponding subjects and bodies)



Assigned to me - EN


Assigned to me - ES


Assigned to me - ZH



Then, each of the three would respond to the event, but the filter did a simple check to see which one actually gets sent.



Example: Assigned to me - EN condition would be


Condition: Assigned to.Language | is | English



It made adding another language pretty straight forward when it came to translating notifications. No scripting involved (aside from the BRs that trigger the event.)



Email Notifications - ServiceNow Wiki


If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you