- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 07:29 AM
Hi ,
I am facing some issue in Email Notification.
If the user updates his comments in the "Additional Comments" , Email should be Triggered to the Requester .
Requester is getting Email Notifications but the comments are not populating in the Email Body .
The recent update only should be populated in the Email Body .
I tried in this way :
Hi ${request.requested_for} ( working fine )
template.print(current.comments.getJournalEntry(1)); ( Not working -Here the comments should populate )
Please give some suggestions.
Thanks
NR
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 09:04 AM
Navigate to Notification Email Scripts under System Notification and you could add it here.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 08:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 08:14 AM
I created a Email Notification :
Under "what it will contain" - > Message HTML - >
------------------------------------------
Hi ${request.requested_for}
current.comments.getJournalEntry(1);
Thank You.
-------------------------------------------------
This is what i added in the email content .
Here Requester name is correctly showing , how ever the comments which were entered in the "Additional comments" are not showing there .
For Ex : If the user enters "Testing" in "Additional comments" in the Incident , "Testing" should be shown in the Email Body .
If the use ${comments} , i can see all the earlier comments as well , but i want only the Recent comments.
Thanks
NR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 08:22 AM
Hello,
current.comments.getJournalEntry(1); is a script it wont work directly on the notification body. You need to create a mail script and add the script in it and then include the mail script on your email body.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 08:24 AM
This should work for you
1) Create a mail script named add_comments and add the script in it
template.print(current.comments.getJournalEntry(1));
2) Include the mail script in your notification HTML body as
${mail_script:add_comments}
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 08:35 AM
Hi Ali ,
1) Create a mail script named add_comments and add the script in it
template.print(current.comments.getJournalEntry(1));
Where should i create the above one ? Could you please elaborate your answer .
2) Include the mail script in your notification HTML body as
${mail_script:add_comments} ( I understood , i can do that )
Thanks
NR