Email client template calling through UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2022 02:38 AM
HI,
I am trying to call out an email client template through Ui action button in major incident form. But there are two email client templates on that table, how to show the specific template when Ui action button is clicked.
thanks,
abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2022 03:02 AM
can you please share the script that u have tried so far
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2022 03:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2022 03:10 AM
Hi Abhi,
you can check the sys_id of email client template and use that in your UI action when you call it
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-14-2022 03:24 AM