Skip to content

Instantly share code, notes, and snippets.

@ovarn
Created August 4, 2022 09:57
Show Gist options
  • Save ovarn/4f674826f0104b1d366f57fd3166263c to your computer and use it in GitHub Desktop.
Save ovarn/4f674826f0104b1d366f57fd3166263c to your computer and use it in GitHub Desktop.
The UI Action simplifies the debugging of ServiceNow notifications by redirecting you from the notification definition to the email log list view with the predefined filter.
<?xml version="1.0" encoding="UTF-8"?>
<unload unload_date="2022-08-04 09:45:12">
<sys_ui_action action="INSERT_OR_UPDATE">
<action_name/>
<active>true</active>
<client>true</client>
<client_script_v2><![CDATA[function onClick(g_form) {
}]]></client_script_v2>
<comments/>
<condition>new GlideRecord('sys_email_log').canRead();</condition>
<form_action>true</form_action>
<form_button>false</form_button>
<form_button_v2>false</form_button_v2>
<form_context_menu>false</form_context_menu>
<form_link>true</form_link>
<form_menu_button_v2>false</form_menu_button_v2>
<form_style/>
<format_for_configurable_workspace>false</format_for_configurable_workspace>
<hint/>
<isolate_script>true</isolate_script>
<list_action>false</list_action>
<list_banner_button>false</list_banner_button>
<list_button>false</list_button>
<list_choice>false</list_choice>
<list_context_menu>false</list_context_menu>
<list_link>false</list_link>
<list_save_with_form_button>false</list_save_with_form_button>
<list_style/>
<messages/>
<name>Show Today Emails Logs</name>
<onclick>openEmailLogList();</onclick>
<order>500</order>
<script><![CDATA[function openEmailLogList() {
var query = '';
query += 'sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()';
query += '^notification=' + g_form.getUniqueValue();
query += '^ORDERBYDESCsys_created_on';
var url = new GlideURL('sys_email_log_list.do');
url.addParam('sysparm_query' , query);
g_navigation.open(url.getURL(), '_blank');
}]]></script>
<show_insert>false</show_insert>
<show_multiple_update>false</show_multiple_update>
<show_query>false</show_query>
<show_update>true</show_update>
<sys_class_name>sys_ui_action</sys_class_name>
<sys_created_by>ivan.barsukov</sys_created_by>
<sys_created_on>2022-08-04 07:25:39</sys_created_on>
<sys_domain>global</sys_domain>
<sys_domain_path>/</sys_domain_path>
<sys_id>bfc7fce2970111104d0d74571153afa4</sys_id>
<sys_mod_count>1</sys_mod_count>
<sys_name>Show Today Emails Logs</sys_name>
<sys_overrides display_value=""/>
<sys_package display_value="Global" source="global">global</sys_package>
<sys_policy/>
<sys_scope display_value="Global">global</sys_scope>
<sys_update_name>sys_ui_action_bfc7fce2970111104d0d74571153afa4</sys_update_name>
<sys_updated_by>ivan.barsukov</sys_updated_by>
<sys_updated_on>2022-08-04 07:25:39</sys_updated_on>
<table>sysevent_email_action</table>
<ui11_compatible>true</ui11_compatible>
<ui16_compatible>false</ui16_compatible>
</sys_ui_action>
</unload>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment