Archit Agnihotr
Tera Contributor

Hi Team

Sharing with you all a quick way of sending or triggering email notification based on user's preferred language. Things are kept OOB stated from scratch itself.

Eg If the End User's Preferred  Language is French then Trigger French Translated Notifications only.

Shown Below: I am planning to Translate OOB "Incident opened for me"  Notification .

If the Abel Tuter(Preferred Language=French ) locks an incident then its French Translation should only be triggered to him.

If Fred Luddy( Preferred Language=English User) locks an incident then its English Translation should only be triggered to him.

                        

Step 1: Install the Language Plugin. Please Remember these plugins do take time to Install .( 2-3 hrs in my case)

Step2: Open the Notification which need to be translated . Eg "Incident opened for me" this is OOB Incident Notification which Triggers to the caller when an incident is created.

Step3: Open each of the Mail Script and add 2 line as shown in the screenshot below.

${mail_script:incident_body_header}
${mail_script:incident_has_been_opened}  //Shown below
${mail_script:incident_take_me_to_the_incident}
These 2 lines highlighted above need to be added in all the 3 Email Scripts of the  OOB Notification named as "Incident opened for me" (Imp.)
Step 4: Please make sure all the text written in Email script should be in gs.getMessage('Example TEXT') and this should be defined in sys_ui_message Table.
Now created an incident Logged in as Abel Tuter( French). The Triggered Notification is shown below .
Then Again I have created an Incident Logged in as Fred Luddy (English)

Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.
Cheers!!
Archit Agnihotri
 
 

 

Comments
Maik Skoddow
Tera Patron
Tera Patron

The embedded images seem to be broken, but not in the email sent by subscription - really strange.

For this reason, it is always recommended giving the code in text-based code blocks. This way, users also can find your article when entering some keywords from the code.

But anyway. The idea is great, and therefore I will give you a "Helpful"!

Kind regards
Maik

Pamela Johnson
Tera Contributor

Without viewable screenshots, this is not very helpful. That's too bad, because I would really like to try your suggestions. 

Version history
Last update:
‎06-23-2021 05:46 AM
Updated by: