The CreatorCon Call for Content is officially open! Get started here.

Calling an Email Client Template in UI Action

ndejoya
Tera Contributor

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.

4 REPLIES 4

Sumanth16
Kilo Patron

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');
}

 

Sumanth16_0-1711898738621.png

 

 

https://www.servicenow.com/community/developer-forum/update-ticket-and-open-email-client-template-in...

 

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

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? 

SK Chand Basha
Tera Sage
Tera Sage

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.

Sateesh Kumar D
ServiceNow Employee
ServiceNow Employee

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