Calling an Email Client Template in UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2024 07:06 AM
Hello!
Very new to developing in ServiceNow and just had a quick question. I am trying to create a UI Action on a form that has an Email Client Template pop up when clicking on an 'Email' button. I created the Email Client Template already but unsure how to go about calling it in the UI Action Script as my scripting skills are still developing. Please let me know the steps I have to take, thank you for the time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2024 08:26 AM
Hi @ndejoya ,
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'); }
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2024 05:06 PM
On the form, there is an email activity feed. I got the Email pop up to work as you showed, but when I sent an email, the email does not show up in the Activity Feed. Do you know why that is? Or what I have to do for that Email to show up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2024 08:58 AM
Hi @ndejoya to call client and server side we use gsftsubmit.
Refer this below video.
https://youtu.be/yyVnpbidwmE?si=TBjC-JlOEVCrSRAN
Mark this Helpful !!. If this Helps you to understand. This will help both the community and me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2024 07:09 PM
Hello,
There is a OOB feature for this, Email client can be configured for any table to allow email from records like incident, problem , etc or even custom tables using "Email client configuration". The tempalte can also be configured for this using "Email Client Templates".
Attached some screenshots
In application navigatore, type