Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Calling specific Email Client Template from UI Action

jakubz
Kilo Explorer

Hello all,

I have 2 email templates created for sn_customerservice_case table and would like to call one of them from UI Action and for all other cases leave original reply-for-customer-service as a default.

However, using OnClick emailClientOpen(gel("email_client_open"), 'sn_customerservice_case'), I get always access to the newest template and the original is not called anywhere then

Is there any way, how can I call my specific email template from UI Action and leave reply-for-customer-service default for everything else?

 

Thank you very much!

Jakub

3 REPLIES 3

Sumanth16
Kilo Patron

snowuser13
Tera Contributor

Did you find the solution for this ??

kalindaskalov
Giga Contributor

Hello,

As mentioned in this article:
https://community.servicenow.com/community?id=community_question&sys_id=404b4feddb5cdbc01dcaf3231f9619e0 

 

This is the way that emailClientOpenPop is defined in popups.js

I created a UI action set it as Client and on the On Click I set this:


emailClientOpenPop('incident', false, null, null, '3dc7afb1876501108aef0f69cebb3599');


The last parameter is the Sys ID of the Email Client Template that I have created.
This should work for you as well 🙂 .