Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial NeedIt Spoke commit #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Generated files
This repository contains generated files and a checksum.

**Do not edit the files in this repository outside of an instance of ServiceNow.**

If you find yourself unable to import your repository due to the presence of files edited outside an instance of ServiceNow, merge commits that mix files from different revisions, or other data that does not match the checksum, you may recover using either of the following techniques:
* Remove the problem commits:
1. Clone your repository to a personal computer with the git command line tools installed and open a git command prompt in the repository root
Expand All @@ -18,3 +16,13 @@ If you find yourself unable to import your repository due to the presence of fil
4. Run `git add -A`
5. Run `git commit`
6. Run `git push`

**Notes on dependencies**
1. Dependencies will not show up in the list of changes but will be exported/imported
2. It is your responsibility to resolve the dependencies before installing an application. ServiceNow source control will not manage these for you. In case you installed an application before installing its dependencies:
2.1 Delete the application
2.2 Activate/install all required dependencies
2.3 Re-import the application from source control
Currently listed dependencies:
* System Import Sets
* Task table schema
2 changes: 1 addition & 1 deletion checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
j1LxxYGxRFm0V_t27fuF0RfBQHSPb9g7O2CT6vF3emadeW5w-twYbkwXgGpOPwjFDEkHfTRZ78aqDVjeg_OneSjD7mVa1s_nQP11pqI0ooYGMaIJGyh6fsjpDN6LMhbcCibAwiYnTL_a8Ix4L5g3jDJ0TkdPOqfEGkNPA0YApnOZz38_St8CZ7tuk0TojWMxIXQYv0Ihu8dbGUuXatAnSPeTZgnNf4d-RaacMS_NhOqDDCPfmmWnYv9KVChdcEWslBB_3Snq3BEOfca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4RRupKWexCjhkrM0r84szBkP0
10 changes: 10 additions & 0 deletions sn_source_control.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#############################################################
# This ServiceNow-created file contains the path to the app in this repo
# path=<path to app content in your repo>
# For example, if the app content resides in a folder named x_my_custom_app, the path value would be:
# path=/x_my_custom_app
# Update the path value when you move the app to a new repo location.
############################################################
#
#Wed Oct 23 23:40:31 PDT 2024
path=

Large diffs are not rendered by default.

1,750 changes: 1,750 additions & 0 deletions update/sys_hub_action_type_definition_ccc19afb831192101d3a5d10feaad31f.xml

Large diffs are not rendered by default.

215 changes: 215 additions & 0 deletions update/sys_hub_flow_6b605a7b831192101d3a5d10feaad3a5.xml

Large diffs are not rendered by default.

1,004 changes: 1,004 additions & 0 deletions update/sys_hub_flow_a1f59a73835192101d3a5d10feaad3ed.xml

Large diffs are not rendered by default.

315 changes: 315 additions & 0 deletions update/sys_hub_flow_ba1612b3835192101d3a5d10feaad335.xml

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions update/sys_scope_privilege_4767def3835192101d3a5d10feaad342.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="sys_scope_privilege">
<sys_scope_privilege action="INSERT_OR_UPDATE">
<operation>execute</operation>
<source_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</source_scope>
<status>allowed</status>
<sys_class_name>sys_scope_privilege</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-24 06:36:06</sys_created_on>
<sys_id>4767def3835192101d3a5d10feaad342</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>ScriptableFlowRunner.withInputs</sys_name>
<sys_package display_value="NeedIt" source="x_58872_needit">6ead8e780f603200cd674f8ce1050ed1</sys_package>
<sys_policy/>
<sys_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</sys_scope>
<sys_update_name>sys_scope_privilege_4767def3835192101d3a5d10feaad342</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-24 06:36:06</sys_updated_on>
<target_name>ScriptableFlowRunner.withInputs</target_name>
<target_scope display_value="Global">global</target_scope>
<target_type>scriptable</target_type>
</sys_scope_privilege>
</record_update>
22 changes: 22 additions & 0 deletions update/sys_scope_privilege_4b679ab3835192101d3a5d10feaad370.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="sys_scope_privilege">
<sys_scope_privilege action="INSERT_OR_UPDATE">
<operation>execute</operation>
<source_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</source_scope>
<status>allowed</status>
<sys_class_name>sys_scope_privilege</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-24 06:36:06</sys_created_on>
<sys_id>4b679ab3835192101d3a5d10feaad370</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>ScriptableFlowRunner.subflow</sys_name>
<sys_package display_value="NeedIt" source="x_58872_needit">6ead8e780f603200cd674f8ce1050ed1</sys_package>
<sys_policy/>
<sys_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</sys_scope>
<sys_update_name>sys_scope_privilege_4b679ab3835192101d3a5d10feaad370</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-24 06:36:06</sys_updated_on>
<target_name>ScriptableFlowRunner.subflow</target_name>
<target_scope display_value="Global">global</target_scope>
<target_type>scriptable</target_type>
</sys_scope_privilege>
</record_update>
22 changes: 22 additions & 0 deletions update/sys_scope_privilege_5767def3835192101d3a5d10feaad3f1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="sys_scope_privilege">
<sys_scope_privilege action="INSERT_OR_UPDATE">
<operation>execute</operation>
<source_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</source_scope>
<status>allowed</status>
<sys_class_name>sys_scope_privilege</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-24 06:36:08</sys_created_on>
<sys_id>5767def3835192101d3a5d10feaad3f1</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>ScriptableFlowRunnerResult.getOutputs</sys_name>
<sys_package display_value="NeedIt" source="x_58872_needit">6ead8e780f603200cd674f8ce1050ed1</sys_package>
<sys_policy/>
<sys_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</sys_scope>
<sys_update_name>sys_scope_privilege_5767def3835192101d3a5d10feaad3f1</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-24 06:36:08</sys_updated_on>
<target_name>ScriptableFlowRunnerResult.getOutputs</target_name>
<target_scope display_value="Global">global</target_scope>
<target_type>scriptable</target_type>
</sys_scope_privilege>
</record_update>
22 changes: 22 additions & 0 deletions update/sys_scope_privilege_cb67def3835192101d3a5d10feaad344.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="sys_scope_privilege">
<sys_scope_privilege action="INSERT_OR_UPDATE">
<operation>execute</operation>
<source_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</source_scope>
<status>allowed</status>
<sys_class_name>sys_scope_privilege</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-24 06:36:06</sys_created_on>
<sys_id>cb67def3835192101d3a5d10feaad344</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>ScriptableFlowRunner.run</sys_name>
<sys_package display_value="NeedIt" source="x_58872_needit">6ead8e780f603200cd674f8ce1050ed1</sys_package>
<sys_policy/>
<sys_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</sys_scope>
<sys_update_name>sys_scope_privilege_cb67def3835192101d3a5d10feaad344</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-24 06:36:06</sys_updated_on>
<target_name>ScriptableFlowRunner.run</target_name>
<target_scope display_value="Global">global</target_scope>
<target_type>scriptable</target_type>
</sys_scope_privilege>
</record_update>
22 changes: 22 additions & 0 deletions update/sys_scope_privilege_cf67def3835192101d3a5d10feaad33f.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="sys_scope_privilege">
<sys_scope_privilege action="INSERT_OR_UPDATE">
<operation>execute</operation>
<source_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</source_scope>
<status>allowed</status>
<sys_class_name>sys_scope_privilege</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-24 06:36:06</sys_created_on>
<sys_id>cf67def3835192101d3a5d10feaad33f</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>ScriptableFlowRunner.inForeground</sys_name>
<sys_package display_value="NeedIt" source="x_58872_needit">6ead8e780f603200cd674f8ce1050ed1</sys_package>
<sys_policy/>
<sys_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</sys_scope>
<sys_update_name>sys_scope_privilege_cf67def3835192101d3a5d10feaad33f</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-24 06:36:06</sys_updated_on>
<target_name>ScriptableFlowRunner.inForeground</target_name>
<target_scope display_value="Global">global</target_scope>
<target_type>scriptable</target_type>
</sys_scope_privilege>
</record_update>
15 changes: 13 additions & 2 deletions update/sys_script_9373668d4fd93200cb281b818110c7f9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,28 @@
<sys_domain>global</sys_domain>
<sys_domain_path>/</sys_domain_path>
<sys_id>9373668d4fd93200cb281b818110c7f9</sys_id>
<sys_mod_count>28</sys_mod_count>
<sys_mod_count>30</sys_mod_count>
<sys_name>NeedIt When needed field date</sys_name>
<sys_overrides/>
<sys_package display_value="NeedIt" source="x_58872_needit">6ead8e780f603200cd674f8ce1050ed1</sys_package>
<sys_policy/>
<sys_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</sys_scope>
<sys_update_name>sys_script_9373668d4fd93200cb281b818110c7f9</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2018-07-26 18:53:02</sys_updated_on>
<sys_updated_on>2024-10-24 06:03:16</sys_updated_on>
<template/>
<when>before</when>
</sys_script>
<sys_translated_text action="delete_multiple" query="documentkey=9373668d4fd93200cb281b818110c7f9"/>
<sys_es_latest_script action="INSERT_OR_UPDATE">
<id>9373668d4fd93200cb281b818110c7f9</id>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-22 06:18:14</sys_created_on>
<sys_id>3520cc9b835512101d3a5d10feaad330</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-22 06:18:14</sys_updated_on>
<table>sys_script</table>
<use_es_latest>false</use_es_latest>
</sys_es_latest_script>
</record_update>
94 changes: 94 additions & 0 deletions update/sys_ui_action_9e769ab3835192101d3a5d10feaad361.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?><record_update sys_domain="global" table="sys_ui_action">
<sys_ui_action action="INSERT_OR_UPDATE">
<action_name/>
<active>true</active>
<client>false</client>
<client_script_v2><![CDATA[function onClick(g_form) {

}]]></client_script_v2>
<comments/>
<condition>current.due_date &lt; new GlideDate()</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>Closes overdue NeedIt Task and creates follow-up task to investigate</hint>
<isolate_script>false</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>Close Overdue NeedIt Task</name>
<onclick/>
<order>100</order>
<script><![CDATA[(function() {

try {
var inputs = {};
inputs['needit_task'] = current; // GlideRecord of table: x_58872_needit_needit_task
inputs['reason'] = "Overdue task closed manually"; // String

// Start Asynchronously: Uncomment to run in background. Code snippet will not have access to outputs.
// sn_fd.FlowAPI.getRunner().subflow('x_58872_needit.copy_of_handle_overdue_needit_tasks').inBackground().withInputs(inputs).run();

// Execute Synchronously: Run in foreground. Code snippet has access to outputs.
var result = sn_fd.FlowAPI.getRunner().subflow('x_58872_needit.copy_of_handle_overdue_needit_tasks').inForeground().withInputs(inputs).run();
var outputs = result.getOutputs();

// Get Outputs:
// Note: outputs can only be retrieved when executing synchronously.
var follow_up_task = outputs['follow_up_task']; // Reference

action.setRedirectURL(followup_task);
action.setReturnURL(current);

} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}

})();]]></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>admin</sys_created_by>
<sys_created_on>2024-10-24 06:34:35</sys_created_on>
<sys_domain>global</sys_domain>
<sys_domain_path>/</sys_domain_path>
<sys_id>9e769ab3835192101d3a5d10feaad361</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>Close Overdue NeedIt Task</sys_name>
<sys_overrides/>
<sys_package display_value="NeedIt" source="x_58872_needit">6ead8e780f603200cd674f8ce1050ed1</sys_package>
<sys_policy/>
<sys_scope display_value="NeedIt">6ead8e780f603200cd674f8ce1050ed1</sys_scope>
<sys_update_name>sys_ui_action_9e769ab3835192101d3a5d10feaad361</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-24 06:34:35</sys_updated_on>
<table>x_58872_needit_needit_task</table>
<ui11_compatible>true</ui11_compatible>
<ui16_compatible>false</ui16_compatible>
</sys_ui_action>
<sys_es_latest_script action="INSERT_OR_UPDATE">
<id>9e769ab3835192101d3a5d10feaad361</id>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-24 06:34:35</sys_created_on>
<sys_id>a81796f3835192101d3a5d10feaad3af</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-24 06:34:35</sys_updated_on>
<table>sys_ui_action</table>
<use_es_latest>true</use_es_latest>
</sys_es_latest_script>
</record_update>