Need to create multiple email client templates to change_request table

Community Alums
Not applicable

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

14 REPLIES 14

ABHAY_M
Tera Guru

Hello Surabhi,

 

Subject can also be dynamic in quick messages 
find_real_file.png

 

you can also call email script for dynamic subject

 

If my answer solved your issue, please mark my answer as ✅ Correct & ????Helpful.

Thanks

Ankur Bawiskar
Tera Patron
Tera Patron

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

 find_real_file.png

Regards
Ankur

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

@surabhipande21@gmail 

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

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

Community Alums
Not applicable

Hi Ankur,

 

Thank you for your response, I have tried the solution provided by you but still same templates are opening on click of 2 different ui action.

 

 

 

find_real_file.pngPfind_real_file.png

Please let me know if I am doing anything wrong here.

 

Regards,

Surabhi