Need to create multiple email client templates to change_request table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2022 03:50 AM
Hi,
We have a requirement to define multiple email client templates to change_request table and trigger them using UI action on a change record to be able to call 3 different email client template on the same table . But when I am using ui action everytime same template is opening.
This can be achieved by Quick messages but the problem is we cannot define subject and other details.
Is this possible to achieve using email client template.
Regards,
Surabhi
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2022 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2022 06:04 AM
Hi,
you can create multiple UI actions and add the correct sys_id of the email client template record
Ensure to give correct UI action conditions so that all 3 don't show at same time
OR
if you want to show all 3 all the time then give proper condition
1st UI action
Client checkbox - true
Onclick - showEmail1()
Script:
function showEmail1(){
emailClientOpenPop('change_request', false, null, null, 'sysId1');
}
2nd UI action
Client checkbox - true
Onclick - showEmail2()
Script:
function showEmail1(){
emailClientOpenPop('change_request', false, null, null, 'sysId2');
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2022 07:41 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2022 01:42 AM