How to change Notification Sender Name while sending notification

Hari S1
Tera Contributor

Hi,

We are automatically adding comments from a business rule with a specific user name(that is Abel Tuter) when the ticket is assigned to the Database or Hardware groups.

Additionally, we have created a notification to inform the caller after comments are added. However, the notification is currently being sent with the name 'System Administrator' but it should be sent with the name 'Abel Tuter.' How can we achieve this?

 

Please help me.

 

Business rule:

HariS1_0-1721825404924.png

 

HariS1_2-1721825450052.png

 

Notification:

 

HariS1_3-1721825475944.png

 

HariS1_4-1721825501135.png

 

 

Sample example:

 

-> Incident ticket it is coming correctly:

HariS1_5-1721825601927.png

 

But in notification it is coming with different name:

HariS1_6-1721825649454.png

 

 

 

Thank you in advance

9 REPLIES 9

Priyanka_786
Tera Guru
Tera Guru

@Hari S1 : You can try with email script to set  "from" of notification dynamically and call that email script in notification. 

 

Email script- var caller_address=  current.caller_id . email;

email.setFrom(caller_address);

 

Try out if it works . Hope it helps.

Please mark my response as correct/helpful if it helps you.

Regards,

Priyanka Salunke

Hi @Priyanka_786 ,

 

I tried with above script but still same.

 

 

Thank you

Priyanka_786
Tera Guru
Tera Guru

@Hari S1 : Please try below approach by calling email script in notification to set comments.

 

Comments - ${mailscript:emailscriptname}

 

 Email script- code as follows.

var commentText = current.comments.getJournalEntry(1);
template.print(commentText);
 
Hope it helps.
Please mark my response as helpful/correct if it helps.
Regards,
Priyanka Salunke

Hi @Priyanka_786 ,

 

Thank you for the quick response.

 

I have added above script in notification and notification email script but not sure I am still getting comments with system administrator name.

Notification:

HariS1_0-1721928354442.png

 

Email script:

HariS1_1-1721928384223.png

 

Received email:

HariS1_2-1721928449172.png

 

 

 

Thank you.

dreinke
Tera Contributor

Hi - did you ever figure this out??