Email client template calling through UI action

Abhi33
Tera Expert

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

7 REPLIES 7

Bhavana Reddy
Mega Guru

can you please share the script that u have tried so far

find_real_file.png

this is it calling template from onclick field

Ankur Bawiskar
Tera Patron
Tera Patron

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

 find_real_file.png

Regards
Ankur

 

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar ,

find_real_file.png

I tried by changing SYS_ID's but showing the same template 

These are the templates

1)

find_real_file.png

2) 

find_real_file.png