- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2015 07:36 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 11:10 AM
Within the Onclick field on the UI Action, simply add:
emailClientOpenPop('table_name'); (ie, emailClientOpenPop('incident');)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2015 10:07 PM
Hi Winnie,
emailClientOpenPop is defined in popups.js and should be available on any table.
The function takes these params:
table, immediate, replyType, replyID, addOn
This is the function definition so you can see what is being done with each param:
function emailClientOpenPop(table, immediate, replyType, replyID, addOn) {
var id = document.getElementsByName("sys_uniqueValue")[0];
if (!id)
return;
var url = new GlideURL("email_client.do");
url.addParam("sysparm_table", table);
url.addParam("sysparm_sys_id", id.value);
url.addParam("sysparm_target", table);
if (replyType != null) {
url.addParam("replytype", replyType);
url.addParam("replyid", replyID);
}
popupOpenEmailClient(url.getURL() + g_form.serializeChangedAll());
}
And most of those are optional:
emailClientOpenPop(table, false, null, null, '');
(table is the table name you are viewing the form for, like 'incident' or 'change_request');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2018 05:01 AM
Dear coryseering,
Where can I find the "popups.js" file?
I need to check its contents because for some strange reasons, the "sysparm_sys_id" parameter in the URL of the pop-up window does not contain any sys_id value. This prevents my outbound emails (send from Reply, Reply All or Forward actions) from appearing in the Activity Formatter, even if they are succesfully relayed to the recipient.
Thanks,
Mihail

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2015 10:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 11:10 AM
Within the Onclick field on the UI Action, simply add:
emailClientOpenPop('table_name'); (ie, emailClientOpenPop('incident');)