- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 07:57 AM
We have enabled glide.ui16.emailStreamResponseActions to display the email reply buttons in the activity log.
These buttons appear to use the Email Client Templates for the Email table. Here I have modified the "reply-received" template to show that it is being used, and I am also displaying the value for "target_table".
This update appears when the reply button is clicked.
What I would like to do is create a new Email Client Template to be used when the target table is 'ticket'. However if I create a new template and in the condition add where Target table is 'ticket' this template is still not used (even with a lower execution order). In fact, if I disable the OOB template, my new template still isn't used.
Has anyone created a new Email Client Template ticket for a particular target table and gotten it to work?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 10:03 AM
ServiceNow CS7517881 investigation found that in order for Email Client Templates to work with the activity log email buttons, the name of the Email Client Template must not change. All Email Client Templates that need to work with the "reply" activity log button must be named "reply-received".
So in my use case, I created another Email Client Template, named it "reply-received", but added a condition where Target table is ticket, and set the Execution Order lower than the OOB Email Client Template with the same name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 10:03 AM
ServiceNow CS7517881 investigation found that in order for Email Client Templates to work with the activity log email buttons, the name of the Email Client Template must not change. All Email Client Templates that need to work with the "reply" activity log button must be named "reply-received".
So in my use case, I created another Email Client Template, named it "reply-received", but added a condition where Target table is ticket, and set the Execution Order lower than the OOB Email Client Template with the same name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 09:17 AM - edited 02-18-2025 01:21 PM
Was looking for this answer to and this was pretty helpful.
But wanted to post in case it wasn't immediately obvious.
When you go to Email Client > Email Client Templates in the navigator, the module loads the Email Client Templates table with a filter that is excluding the templates targeted on the Email table.
Which as mentioned above, is the table the Email client is launching against when clicking the Reply, Reply all, and Forward buttons in the activity log.
If you just clear the filter you can see them. Then you can filter to just the templates on the sys_email table.
You can also use the modules under Response Templates - Received and Response Templates - Sent
You could add new templates with conditions that use an earlier execution order than the OOB ones and leave the OOB ones as a fallback if needed, but this will be based on your requirements.
Each template is named for a button / (mailbox/email type). So you can control the templates used for each button and email type combo.
*Note that I don't know if it is the sys_email type of the mailbox value that is used to determine the template used but the type and mailbox are one to one essentially for the emails that show in the Activity log.
Template | Button | sys_email type value/Mailbox |
reply-received | Reply | received / Received |
replyall-received | Reply All | received / Received |
forward-received | Forward | received / Received |
reply-sent | Reply | sent / Sent |
replyall-sent | Reply All | sent / Sent |
forward-sent | Forward | sent / Sent |
Here is an example of a template on the Email table with a condition of Target Table = incident and the name is replyall-received.
There is no customer replyall-sent template.
If you want to mimic the OOB templates and include the original email info, make sure to include the mailscript shown in the OOB templates at the bottom of you custom template's body.