[Glide Notification Translation] Translation for mail-script-added CC

Arthur S
Tera Contributor

Hello 

 

For some business needs, we have a mail script that adds Contact's email address as CC in some notification 

Script looks something like that, and works fine :

 

 

(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
    /* Optional EmailOutbound */
    email, /* Optional GlideRecord */ email_action,
    /* Optional GlideRecord */
    event) {

    email.addAddress('cc', 'abraham.lincoln@example.com', 'Abraham Lincoln');
    email.addAddress('cc', 'abel.tuter@example.com', 'Abel Tuter');


})(current, template, email, email_action, event);

 

 

I'm trying to install the Glide Notification Translation plugin and was wondering what would happen for those mail CCed to email address that correspond to different language-speaking users

 

I tested on my PDI and it seems that the translation is not happening, which could be explained as the system is not trying to find users matching the email address

 

Do you know of any way to make this case work ?

 

Thanks in advance

Arthur 

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, based on your post details, this seems like correct behavior as a notification email script is triggered by the creation of a notification message, where 'Glide Notification Translation plugin' generates a notification message based on recipients in the 'TO' field.
The simple solution is probably to include the users in the TO field, so that language specific notifications are generated, not add them afterwards as CC with a script.

Once solution might be to use the notification email script to generate sysevents\trigger a new notification with the users involved added as recipients.

View solution in original post

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, based on your post details, this seems like correct behavior as a notification email script is triggered by the creation of a notification message, where 'Glide Notification Translation plugin' generates a notification message based on recipients in the 'TO' field.
The simple solution is probably to include the users in the TO field, so that language specific notifications are generated, not add them afterwards as CC with a script.

Once solution might be to use the notification email script to generate sysevents\trigger a new notification with the users involved added as recipients.

Arthur S
Tera Contributor

I will suggest that to my client, thanks for your answer !