Notification based on Preferred Language

Community Alums
Not applicable

Hello,

How can we send notifications based on preferred language?

6 REPLIES 6

AbhishekGardade
Giga Sage

You can check out this way:

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

Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies

Thank you,
Abhishek Gardade

Any updates on this?

Can you please mark my response as correct and close this thread so that others with the same question in the future can find it quickly.

Thanks!
Abhishek Gardade
Hexaware Technologies

Thank you,
Abhishek Gardade

asifnoor
Kilo Patron

Hi,

There is no direct way to do this.

You need to create multiple notifications (per langugae) and based on the language fire the respective language event.

 

make your notifications listen to these events based on language.

Example: notif_german

event name: german_event.

you can trigger this event, based on your user language

var session = gs.getSession();
var language = session.getLanguage();
if(language== "de") {
gs.eventQueue("german_event",current,gs.getUserID(),gs.getUserName());
}

Mark the comment as a correct answer and helpful if this helps.

If this has addressed your question, kindly mark the comment as a correct answer so that the question is moved to the solved list.