How do I dynamically create the Subject in Client Template to populate based on information from the case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2019 06:45 AM
I am trying to dynamically create the subject of a reply email to populate based on information from the case.
I am using the Email [sys_email] table so I'm able to capture the email chain in the reply.
I want the case number as well as the short description from the case to be the subject of the email. The issue I'm having is because the client template isn't using the table used for the case (using sys_email vs sn_hr_core_case_relations). Could someone point me in the right direction as to how I would accomplish this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 05:16 AM
please add:
while (gr.next())
{
email.setSubject("your code");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 06:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 07:41 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 06:22 AM
For what it's worth, we did an episode of TechNow on the Email Client earlier in 2019. Take a look at episode 64.
TechNow Episode List - Developer Community - ServiceNow Community