How to call emailClientOpenPop() in UI action?

winniechim
Kilo Contributor

Hi all,

I'm very new to the system Email functions.

I want to show a send email pop up when client click a button.

So I create an UI Action and research that there is a emailClientOpenPop() function in system.

New my obstacle is I have no idea where emailClientOpenPop() is, what are the parameters needed and how to call it from the UI Action Onclick/script.

Many thanks for any advise!

Winnie

1 ACCEPTED SOLUTION

billi_lumley
ServiceNow Employee
ServiceNow Employee

Within the Onclick field on the UI Action, simply add:


emailClientOpenPop('table_name'); (ie, emailClientOpenPop('incident');)


View solution in original post

7 REPLIES 7

Hi


Is there a way to use an email template in emailClientOpenPop?


Thanks


Patricia


Friedrich Gehri
Tera Expert

This is working fine from a functional side. However, when using this, I get the following error in my browser console:

FriedrichGehri_0-1666961272266.png


> Uncaught SyntaxError: Invalid or unexpected token
Obviously the browser does not like the backslash in the command
> window.emailClientOpenPop(\'incident\'); = emailClientOpenPop(\'incident\');;
I never put in the backslash there, but some escaping seems to be going on behind the scenes.
Anyone experienced the same and knows how to fix it?

Hi, 

 

Please follow the instructions from the below KB article to fix the console error :

https://support.servicenow.com/kb?id=kb_article_view&sys_kb_id=bdf04183db3cad10fd8d2b69139619af

 

Thanks,

Geethika G