Deepak Negi
Mega Sage
Mega Sage

Creating multilingual notification is a usual ask in any customer instance having multiple languages. There are multiple ways to configure it and SN suggests to create separate notification for each language.

Translating Email Notification - Support and Troubleshooting (servicenow.com)

However I have configured in similar way for some customers but this time I thought to give it a try to utilize with single notification. Here is my approach.

1. Activate the respective language plugin.

Translating Email Notification - Support and Troubleshooting (servicenow.com)

2. Create a new notification with the content being generated from mail script.

find_real_file.png

3. Create language respective message in System Localization > Messages

English:

find_real_file.png

 

French:

find_real_file.png

 

4. Write the mail script as

var userLang = current.caller_id.preferred_language;
var objArray = [current.caller_id.name,current.number];
var content = gs.getMessageLang("dn.notification.body",userLang,objArray);
template.print(content);

Notice the getMessageLang() function, this will fetch the message according to the Caller's language. Thanks @Mark Roethof for this 🙂

 

Thats it!

 

Result:
English: 

find_real_file.png

French:

find_real_file.png

 

Though this works perfectly when there are single recipient for a notification like Caller, Assigned To etc.

There are certain scenarios which may present a challenge while configuring this,e.g Notification to multiple users(single or multi-language). I will update this post if any solution is matched.

 

UPDATE: Multiple users notification implementation. Multilingual Notifications - Multiple Recipients - Now Platform - Article - ServiceNow Community

 

Happy Holidays Everyone 🙂

Comments
Vivi Brasil
Kilo Sage

Hello Deepak Negi, great article, thank you for sharing it with the community! This approach with the getMessageLang() function, it is really awesome, as it avoids to create separate notification for each language.

In regards to Notification to multiple users, we have recently used in our implementation, the approach proposed in this another Community Article:

We have tried other solutions before, but for Groups, it was the one which better handle the customer requirements, and it worked well for maintenance purposes.

Thank you so much!
Viviane

Deepak Negi
Mega Sage
Mega Sage

Thank you Viviane for your kind comment 🙂

The article for group notification seems neat. I will surely try that, thanks for sharing.

 

Regards

Deepak

Deepak Negi
Mega Sage
Mega Sage

Hi Viviane

 

I was able to send out notification to multiple users. We dont have to create different notification.

Please see if this helps.

Multilingual Notifications - Multiple Recipients - Now Platform - Article - ServiceNow Community

 

Regards

Deepak

Deepak Negi
Mega Sage
Mega Sage

Hi Viviane

 

I was able to send out notification to multiple users. We dont have to create different notification.

Please see if this helps.

Multilingual Notifications - Multiple Recipients - Now Platform - Article - ServiceNow Community

 

Regards

Deepak

Vivi Brasil
Kilo Sage

Hi Deepak Negi, thank you so much for working on it and for sharing it here. It seems excellent! As it does not require to create different notification. I will try that in one of our notifications and I am totally sure it will help us a lot. I really appreciate your help and attention.

Best regards,
Viviane

Pooja Negi
Tera Contributor

Hi Deepak

 

This is brilliant!! I have used this in our current project and it is definitely easy to manage the messages rather than updating Individual Notifications.

 

This is clever!!!!

 

Thanks

Version history
Last update:
‎12-27-2021 06:09 AM
Updated by: