diff --git a/README.md b/README.md index 0358084..455baff 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/author_elective_update/sp_instance_09d5c91097353110af69341e6253afa9.xml b/author_elective_update/sp_instance_09d5c91097353110af69341e6253afa9.xml new file mode 100644 index 0000000..5c4cb0b --- /dev/null +++ b/author_elective_update/sp_instance_09d5c91097353110af69341e6253afa9.xml @@ -0,0 +1,77 @@ + + + true + + default + + + + 3 + + + md + cf295ae1094232007f44e1046c8ff616 + 7a7543e8db3133000613a08a4896195e + sp_instance + admin + 2023-10-06 07:49:58 + 09d5c91097353110af69341e6253afa9 + 0 + + df5fd9a5090232007f44e1046c8ff69f + + df5fd9a5090232007f44e1046c8ff69f + sp_instance_09d5c91097353110af69341e6253afa9 + admin + 2023-10-06 07:49:58 + + <url/> + <widget_parameters/> + </sp_instance> + <sys_translated_text action="DELETE" query="documentkey=09d5c91097353110af69341e6253afa9"/> + <sys_update_version action="INSERT_OR_UPDATE"> + <action>DELETE</action> + <application display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</application> + <file_path/> + <instance_id>f950cf70db15bbc0387021c405961901</instance_id> + <instance_name>dev85432</instance_name> + <name>sp_instance_09d5c91097353110af69341e6253afa9</name> + <payload><![CDATA[<?xml version="1.0" encoding="UTF-8"?><record_update table="sp_instance"><sp_instance action="INSERT_OR_UPDATE"><active>true</active><class_name/><color>default</color><css/><glyph/><id/><order>3</order><roles/><short_description/><size>md</size><sp_column display_value="2">cf295ae1094232007f44e1046c8ff616</sp_column><sp_widget display_value="Notes Body">7a7543e8db3133000613a08a4896195e</sp_widget><sys_class_name>sp_instance</sys_class_name><sys_created_by>admin</sys_created_by><sys_created_on>2023-10-06 07:49:58</sys_created_on><sys_id>09d5c91097353110af69341e6253afa9</sys_id><sys_mod_count>0</sys_mod_count><sys_name/><sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package><sys_policy/><sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope><sys_update_name>sp_instance_09d5c91097353110af69341e6253afa9</sys_update_name><sys_updated_by>admin</sys_updated_by><sys_updated_on>2023-10-06 07:49:58</sys_updated_on><title/><url/><widget_parameters/></sp_instance><sys_translated_text action="delete_multiple" query="documentkey=09d5c91097353110af69341e6253afa9"/></record_update>]]></payload> + <payload_hash>-1710110701</payload_hash> + <record_name/> + <reverted_from/> + <source>918e74d897f13110af69341e6253afc5</source> + <source_table>sys_update_set</source_table> + <state>previous</state> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:49:58</sys_created_on> + <sys_id>01d5c99097353110af69341e6253afd5</sys_id> + <sys_mod_count>0</sys_mod_count> + <sys_recorded_at>18b03f6f73e0000001</sys_recorded_at> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:49:58</sys_updated_on> + <type>Instance</type> + <update_guid>49d5c9903e353110a2c0b4e1c366a3d4</update_guid> + <update_guid_history>49d5c9903e353110a2c0b4e1c366a3d4:-1710110701</update_guid_history> + </sys_update_version> + <sys_metadata_delete action="INSERT_OR_UPDATE"> + <sys_audit_delete display_value="">82d50d9097353110af69341e6253af51</sys_audit_delete> + <sys_class_name>sys_metadata_delete</sys_class_name> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:50:02</sys_created_on> + <sys_db_object display_value="" name="sp_instance">sp_instance</sys_db_object> + <sys_id>4c4b9d414d7d4368b6de19e0b72dce10</sys_id> + <sys_metadata>09d5c91097353110af69341e6253afa9</sys_metadata> + <sys_mod_count>0</sys_mod_count> + <sys_name/> + <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> + <sys_parent/> + <sys_policy/> + <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> + <sys_scope_delete display_value="">64daa03572704d49a928bf08a985d6f9</sys_scope_delete> + <sys_update_name>sp_instance_09d5c91097353110af69341e6253afa9</sys_update_name> + <sys_update_version display_value="sp_instance_09d5c91097353110af69341e6253afa9">01d5c99097353110af69341e6253afd5</sys_update_version> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:50:02</sys_updated_on> + </sys_metadata_delete> +</record_update> diff --git a/author_elective_update/sp_instance_51b5019097353110af69341e6253af50.xml b/author_elective_update/sp_instance_51b5019097353110af69341e6253af50.xml new file mode 100644 index 0000000..78e9811 --- /dev/null +++ b/author_elective_update/sp_instance_51b5019097353110af69341e6253af50.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?><record_update table="sp_instance"> + <sp_instance action="DELETE"> + <active>true</active> + <class_name/> + <color>default</color> + <css/> + <glyph/> + <id/> + <order>1</order> + <roles/> + <short_description/> + <size>md</size> + <sp_column display_value="2">cf295ae1094232007f44e1046c8ff616</sp_column> + <sp_widget display_value="Notes Body">7a7543e8db3133000613a08a4896195e</sp_widget> + <sys_class_name>sp_instance</sys_class_name> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:49:27</sys_created_on> + <sys_id>51b5019097353110af69341e6253af50</sys_id> + <sys_mod_count>0</sys_mod_count> + <sys_name/> + <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> + <sys_policy/> + <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> + <sys_update_name>sp_instance_51b5019097353110af69341e6253af50</sys_update_name> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:49:27</sys_updated_on> + <title/> + <url/> + <widget_parameters/> + </sp_instance> + <sys_translated_text action="DELETE" query="documentkey=51b5019097353110af69341e6253af50"/> + <sys_update_version action="INSERT_OR_UPDATE"> + <action>DELETE</action> + <application display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</application> + <file_path/> + <instance_id>f950cf70db15bbc0387021c405961901</instance_id> + <instance_name>dev85432</instance_name> + <name>sp_instance_51b5019097353110af69341e6253af50</name> + <payload><![CDATA[<?xml version="1.0" encoding="UTF-8"?><record_update table="sp_instance"><sp_instance action="INSERT_OR_UPDATE"><active>true</active><class_name/><color>default</color><css/><glyph/><id/><order>1</order><roles/><short_description/><size>md</size><sp_column display_value="2">cf295ae1094232007f44e1046c8ff616</sp_column><sp_widget display_value="Notes Body">7a7543e8db3133000613a08a4896195e</sp_widget><sys_class_name>sp_instance</sys_class_name><sys_created_by>admin</sys_created_by><sys_created_on>2023-10-06 07:49:27</sys_created_on><sys_id>51b5019097353110af69341e6253af50</sys_id><sys_mod_count>0</sys_mod_count><sys_name/><sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package><sys_policy/><sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope><sys_update_name>sp_instance_51b5019097353110af69341e6253af50</sys_update_name><sys_updated_by>admin</sys_updated_by><sys_updated_on>2023-10-06 07:49:27</sys_updated_on><title/><url/><widget_parameters/></sp_instance><sys_translated_text action="delete_multiple" query="documentkey=51b5019097353110af69341e6253af50"/></record_update>]]></payload> + <payload_hash>1942894993</payload_hash> + <record_name/> + <reverted_from/> + <source>918e74d897f13110af69341e6253afc5</source> + <source_table>sys_update_set</source_table> + <state>previous</state> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:49:27</sys_created_on> + <sys_id>d5b5899097353110af69341e6253af09</sys_id> + <sys_mod_count>0</sys_mod_count> + <sys_recorded_at>18b03f67bc30000001</sys_recorded_at> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:49:27</sys_updated_on> + <type>Instance</type> + <update_guid>11b5899093353110e216694626cf1b09</update_guid> + <update_guid_history>11b5899093353110e216694626cf1b09:1942894993</update_guid_history> + </sys_update_version> + <sys_metadata_delete action="INSERT_OR_UPDATE"> + <sys_audit_delete display_value="">0ee54d9097353110af69341e6253af11</sys_audit_delete> + <sys_class_name>sys_metadata_delete</sys_class_name> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:50:18</sys_created_on> + <sys_db_object display_value="" name="sp_instance">sp_instance</sys_db_object> + <sys_id>473cd6effa8f42d4a1a6915f9f085a90</sys_id> + <sys_metadata>51b5019097353110af69341e6253af50</sys_metadata> + <sys_mod_count>0</sys_mod_count> + <sys_name/> + <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> + <sys_parent/> + <sys_policy/> + <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> + <sys_scope_delete display_value="">64daa03572704d49a928bf08a985d6f9</sys_scope_delete> + <sys_update_name>sp_instance_51b5019097353110af69341e6253af50</sys_update_name> + <sys_update_version display_value="sp_instance_51b5019097353110af69341e6253af50">d5b5899097353110af69341e6253af09</sys_update_version> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:50:18</sys_updated_on> + </sys_metadata_delete> +</record_update> diff --git a/author_elective_update/sp_instance_aaa5895097353110af69341e6253af6d.xml b/author_elective_update/sp_instance_aaa5895097353110af69341e6253af6d.xml new file mode 100644 index 0000000..52aa66d --- /dev/null +++ b/author_elective_update/sp_instance_aaa5895097353110af69341e6253af6d.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?><record_update table="sp_instance"> + <sp_instance action="DELETE"> + <active>true</active> + <class_name/> + <color>default</color> + <css/> + <glyph/> + <id/> + <order>2</order> + <roles/> + <short_description/> + <size>md</size> + <sp_column display_value="1">43295ae1094232007f44e1046c8ff615</sp_column> + <sp_widget display_value="Notes List">06948fa8db3133000613a08a4896194c</sp_widget> + <sys_class_name>sp_instance</sys_class_name> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:49:15</sys_created_on> + <sys_id>aaa5895097353110af69341e6253af6d</sys_id> + <sys_mod_count>0</sys_mod_count> + <sys_name/> + <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> + <sys_policy/> + <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> + <sys_update_name>sp_instance_aaa5895097353110af69341e6253af6d</sys_update_name> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:49:15</sys_updated_on> + <title/> + <url/> + <widget_parameters/> + </sp_instance> + <sys_translated_text action="DELETE" query="documentkey=aaa5895097353110af69341e6253af6d"/> + <sys_update_version action="INSERT_OR_UPDATE"> + <action>DELETE</action> + <application display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</application> + <file_path/> + <instance_id>f950cf70db15bbc0387021c405961901</instance_id> + <instance_name>dev85432</instance_name> + <name>sp_instance_aaa5895097353110af69341e6253af6d</name> + <payload><![CDATA[<?xml version="1.0" encoding="UTF-8"?><record_update table="sp_instance"><sp_instance action="INSERT_OR_UPDATE"><active>true</active><class_name/><color>default</color><css/><glyph/><id/><order>2</order><roles/><short_description/><size>md</size><sp_column display_value="1">43295ae1094232007f44e1046c8ff615</sp_column><sp_widget display_value="Notes List">06948fa8db3133000613a08a4896194c</sp_widget><sys_class_name>sp_instance</sys_class_name><sys_created_by>admin</sys_created_by><sys_created_on>2023-10-06 07:49:15</sys_created_on><sys_id>aaa5895097353110af69341e6253af6d</sys_id><sys_mod_count>0</sys_mod_count><sys_name/><sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package><sys_policy/><sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope><sys_update_name>sp_instance_aaa5895097353110af69341e6253af6d</sys_update_name><sys_updated_by>admin</sys_updated_by><sys_updated_on>2023-10-06 07:49:15</sys_updated_on><title/><url/><widget_parameters/></sp_instance><sys_translated_text action="delete_multiple" query="documentkey=aaa5895097353110af69341e6253af6d"/></record_update>]]></payload> + <payload_hash>1332518273</payload_hash> + <record_name/> + <reverted_from/> + <source>918e74d897f13110af69341e6253afc5</source> + <source_table>sys_update_set</source_table> + <state>previous</state> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:49:16</sys_created_on> + <sys_id>fea5099097353110af69341e6253afab</sys_id> + <sys_mod_count>0</sys_mod_count> + <sys_recorded_at>18b03f651160000001</sys_recorded_at> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:49:16</sys_updated_on> + <type>Instance</type> + <update_guid>2aa5099004353110ad96a7c9fe52e7ab</update_guid> + <update_guid_history>2aa5099004353110ad96a7c9fe52e7ab:1332518273</update_guid_history> + </sys_update_version> + <sys_metadata_delete action="INSERT_OR_UPDATE"> + <sys_audit_delete display_value="">bc49085997353110af69341e6253affc</sys_audit_delete> + <sys_class_name>sys_metadata_delete</sys_class_name> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-09 05:59:16</sys_created_on> + <sys_db_object display_value="" name="sp_instance">sp_instance</sys_db_object> + <sys_id>07ad825934604890906e805c516f4a90</sys_id> + <sys_metadata>aaa5895097353110af69341e6253af6d</sys_metadata> + <sys_mod_count>0</sys_mod_count> + <sys_name/> + <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> + <sys_parent/> + <sys_policy/> + <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> + <sys_scope_delete display_value="">64daa03572704d49a928bf08a985d6f9</sys_scope_delete> + <sys_update_name>sp_instance_aaa5895097353110af69341e6253af6d</sys_update_name> + <sys_update_version display_value="sp_instance_aaa5895097353110af69341e6253af6d">fea5099097353110af69341e6253afab</sys_update_version> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-09 05:59:16</sys_updated_on> + </sys_metadata_delete> +</record_update> diff --git a/author_elective_update/sp_instance_c2d583a8db3133000613a08a48961974.xml b/author_elective_update/sp_instance_c2d583a8db3133000613a08a48961974.xml new file mode 100644 index 0000000..2a4f700 --- /dev/null +++ b/author_elective_update/sp_instance_c2d583a8db3133000613a08a48961974.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?><record_update table="sp_instance"> + <sp_instance action="DELETE"> + <active>true</active> + <class_name/> + <color>default</color> + <css/> + <glyph/> + <id/> + <order>2</order> + <roles/> + <short_description/> + <size>md</size> + <sp_column display_value="2">cf295ae1094232007f44e1046c8ff616</sp_column> + <sp_widget display_value="Notes Body">7a7543e8db3133000613a08a4896195e</sp_widget> + <sys_class_name>sp_instance</sys_class_name> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2019-05-30 18:18:32</sys_created_on> + <sys_id>c2d583a8db3133000613a08a48961974</sys_id> + <sys_mod_count>1</sys_mod_count> + <sys_name/> + <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> + <sys_policy/> + <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> + <sys_update_name>sp_instance_c2d583a8db3133000613a08a48961974</sys_update_name> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:49:27</sys_updated_on> + <title/> + <url/> + <widget_parameters/> + </sp_instance> + <sys_translated_text action="DELETE" query="documentkey=c2d583a8db3133000613a08a48961974"/> + <sys_update_version action="INSERT_OR_UPDATE"> + <action>DELETE</action> + <application display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</application> + <file_path/> + <instance_id>f950cf70db15bbc0387021c405961901</instance_id> + <instance_name>dev85432</instance_name> + <name>sp_instance_c2d583a8db3133000613a08a48961974</name> + <payload><![CDATA[<?xml version="1.0" encoding="UTF-8"?><record_update table="sp_instance"><sp_instance action="INSERT_OR_UPDATE"><active>true</active><class_name/><color>default</color><css/><glyph/><id/><order>2</order><roles/><short_description/><size>md</size><sp_column display_value="2">cf295ae1094232007f44e1046c8ff616</sp_column><sp_widget display_value="Notes Body">7a7543e8db3133000613a08a4896195e</sp_widget><sys_class_name>sp_instance</sys_class_name><sys_created_by>admin</sys_created_by><sys_created_on>2019-05-30 18:18:32</sys_created_on><sys_id>c2d583a8db3133000613a08a48961974</sys_id><sys_mod_count>1</sys_mod_count><sys_name/><sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package><sys_policy/><sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope><sys_update_name>sp_instance_c2d583a8db3133000613a08a48961974</sys_update_name><sys_updated_by>admin</sys_updated_by><sys_updated_on>2023-10-06 07:49:27</sys_updated_on><title/><url/><widget_parameters/></sp_instance><sys_translated_text action="delete_multiple" query="documentkey=c2d583a8db3133000613a08a48961974"/></record_update>]]></payload> + <payload_hash>-2031091502</payload_hash> + <record_name/> + <reverted_from/> + <source>918e74d897f13110af69341e6253afc5</source> + <source_table>sys_update_set</source_table> + <state>previous</state> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:49:27</sys_created_on> + <sys_id>9db5899097353110af69341e6253af0c</sys_id> + <sys_mod_count>0</sys_mod_count> + <sys_recorded_at>18b03f67bf70000001</sys_recorded_at> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:49:27</sys_updated_on> + <type>Instance</type> + <update_guid>d5b58990453531100e0b81716044470c</update_guid> + <update_guid_history>d5b58990453531100e0b81716044470c:-2031091502,476d3498ecf131100cf70a6c8fe88f62:929181267</update_guid_history> + </sys_update_version> + <sys_metadata_delete action="INSERT_OR_UPDATE"> + <sys_audit_delete display_value="">0ee54d9097353110af69341e6253af0b</sys_audit_delete> + <sys_class_name>sys_metadata_delete</sys_class_name> + <sys_created_by>admin</sys_created_by> + <sys_created_on>2023-10-06 07:50:18</sys_created_on> + <sys_db_object display_value="" name="sp_instance">sp_instance</sys_db_object> + <sys_id>1b4d5649f23c48f0837bd63f732837e4</sys_id> + <sys_metadata>c2d583a8db3133000613a08a48961974</sys_metadata> + <sys_mod_count>0</sys_mod_count> + <sys_name/> + <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> + <sys_parent/> + <sys_policy/> + <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> + <sys_scope_delete display_value="">64daa03572704d49a928bf08a985d6f9</sys_scope_delete> + <sys_update_name>sp_instance_c2d583a8db3133000613a08a48961974</sys_update_name> + <sys_update_version display_value="sp_instance_c2d583a8db3133000613a08a48961974">9db5899097353110af69341e6253af0c</sys_update_version> + <sys_updated_by>admin</sys_updated_by> + <sys_updated_on>2023-10-06 07:50:18</sys_updated_on> + </sys_metadata_delete> +</record_update> diff --git a/checksum.txt b/checksum.txt index a47042c..1c22585 100644 --- a/checksum.txt +++ b/checksum.txt @@ -1 +1 @@ -d2U7D3lEXSO0bAu13MihfYP_P8Ml90xy8nG72I3u7fnpBTkbyr0i812Y1AkdZb2zC8ZtwN4Yw1qj5Xix0qb9fHv2LWMRgFpbfI1RRdTc69FWEKVZm1_y1_mugkk5DpVfQlnyLViS4hwmN7G2JIvb8yrIgCAX05-8WR24Q_Z4tGLiYYY4sg_zaCCJWk5YGoYnsdGSytoE47H7aUvM7tRNEUyKSFx6LzIG7P6G8m4yNVTgyaQuPcB0XUl1k6LUGUeAmSt_XOub-l_Zq_WyFwtl_akHJIn7v1ooX1zVp6tgBm_GjqOONfdhcHEarnw65bemU7X_K78tZrmpZ3UKvjSf92Xv86q8_0UifW_oKxynZi_yNLWQ0zy7cr6ehXVrvVnmVAFrry9MX9d_I6sFt9q3nIrD2zDSNWeVLCu9iAmi_hTkqMibrz8xkxXnBi7FTTZcY5iHcdf4TDjareP-MxWp_UtCPeRRKu2m0UXRyyqBmPjei38oLFY2MqI0EBum9YuyDZEAYNauHU0JfKLild-hdbhNh5u0N1AmfEWmL_WB8CgQgGS8KrGZDRN05ylulnvPkufCvHdEpOGWk3fhVK1A5EYIzlPNEUkhLhOo_TWiHh7YZQJ9SQXM1pPO_9ziXJ7cUtkln90tN5zpuTWfk6ZgrADXiN2Rh2bOVYHfLfWwy8Q \ No newline at end of file +4E3dNm53At0LnHGzrGfC8cjhaJ-4Fk0-p9A5dAm_pcTRFBanUiQgxWqB3UnF_rAYQoGD-JDls_HMFCRc0UemiSTequz5l0-svuyPVIwpwqzW710C7nc3ZtjoS5ELcidRFIM7sfaqMfHN35mXjcG2MlvAAp9FN9NKHU2l0hbgzpDYRqfaeLjNrzSdP5carFuPz2iwXVGnVOgMr0gLno-AdB0AvCGFzYLm3ikS3DySHkGYt71enFXseU2A8a4Vzflj3qRQLtyxYuGRj3wkeXgF50hcwaLHNNwnX0RS278mCM3SIKlgCfeS4iYq_DIC8Mwlzj2LAWeQIK7tpAqRFSAo6dmOXwts4bU0Htxy4mcnkM00_5KE6WYZkoo1QvOcpxxcVkOoxD84NZYDMDj8osHP_rnBlxO7ed5wPWRHfopeMslRA9EDmy2hHl7rnNGty4YG-9Pcm19psmaHwKtpGroZw2Wv_sCTgwesvpAYBWEjNlqGFEun2N0le7dA0vDPYfqprASC9sHaCE1J4nZBN7Hoflw-SojJRgnpfydotgMGEK2YjXCCco1WfI3Xk_Cbfghsb7er1LMYRTKHGLUJYDXFPkSjEIJ7fx8tenobUlqIfFG2h6CEAQwl6wVuVIbbGS5h1BKTpmQjsmEo6OMcOpgm7RLVcrefon9kkUsyw-I8BPU \ No newline at end of file diff --git a/sn_source_control.properties b/sn_source_control.properties new file mode 100644 index 0000000..054d434 --- /dev/null +++ b/sn_source_control.properties @@ -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. +############################################################ +# +#Mon Oct 09 00:21:45 PDT 2023 +path= diff --git a/update/sp_instance_c2d583a8db3133000613a08a48961974.xml b/update/sp_instance_006c801d97353110af69341e6253afbf.xml similarity index 78% rename from update/sp_instance_c2d583a8db3133000613a08a48961974.xml rename to update/sp_instance_006c801d97353110af69341e6253afbf.xml index 7b97346..952bf38 100644 --- a/update/sp_instance_c2d583a8db3133000613a08a48961974.xml +++ b/update/sp_instance_006c801d97353110af69341e6253afbf.xml @@ -14,19 +14,19 @@ <sp_widget display_value="Notes Body">7a7543e8db3133000613a08a4896195e</sp_widget> <sys_class_name>sp_instance</sys_class_name> <sys_created_by>admin</sys_created_by> - <sys_created_on>2019-05-30 18:18:32</sys_created_on> - <sys_id>c2d583a8db3133000613a08a48961974</sys_id> + <sys_created_on>2023-10-09 06:12:53</sys_created_on> + <sys_id>006c801d97353110af69341e6253afbf</sys_id> <sys_mod_count>0</sys_mod_count> <sys_name/> <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> <sys_policy/> <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> - <sys_update_name>sp_instance_c2d583a8db3133000613a08a48961974</sys_update_name> + <sys_update_name>sp_instance_006c801d97353110af69341e6253afbf</sys_update_name> <sys_updated_by>admin</sys_updated_by> - <sys_updated_on>2019-05-30 18:18:32</sys_updated_on> + <sys_updated_on>2023-10-09 06:12:53</sys_updated_on> <title/> <url/> <widget_parameters/> </sp_instance> - <sys_translated_text action="delete_multiple" query="documentkey=c2d583a8db3133000613a08a48961974"/> + <sys_translated_text action="delete_multiple" query="documentkey=006c801d97353110af69341e6253afbf"/> </record_update> diff --git a/update/sp_widget_06948fa8db3133000613a08a4896194c.xml b/update/sp_widget_06948fa8db3133000613a08a4896194c.xml index 687f0cb..03ba01b 100644 --- a/update/sp_widget_06948fa8db3133000613a08a4896194c.xml +++ b/update/sp_widget_06948fa8db3133000613a08a4896194c.xml @@ -1,92 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?><record_update table="sp_widget"> <sp_widget action="INSERT_OR_UPDATE"> <category>custom</category> - <client_script><![CDATA[function($rootScope,$scope,spUtil) { + <client_script><![CDATA[function($rootScope,$scope) { /* widget controller */ var c = this; - // Use a position indicator to know which record to update - c.notePos = 0; - - c.selectItem = function(idx) { - // Set the position indicator to the index value passed in on select - c.notePos = idx; + c.selectItem = function(idx) { var id = c.data.notes[idx].sys_id; console.log('Note ID: ' + id); $rootScope.noteID = id; $rootScope.$emit('selectNote', id); } - // Subscribe to event. Set the new title and note values on the - // c.data object - $rootScope.$on('updateTitle', function(event,data) { - c.data.notes[c.notePos].title = data.title; - c.data.notes[c.notePos].note = data.note; - }); - - c.newNote = function() { - c.server.get({ - action: 'newNote' - }).then(function(r) { - c.data.notes.unshift(r.data.newNote); - c.data.noteID = r.data.noteID; - $rootScope.noteID = c.data.noteID; - $rootScope.$emit('selectNote', c.data.noteID); - }); - } - - $rootScope.$on('deleteNote', function(event,data) { - c.data.notes.splice($scope.notePos, 1); - }); - - // Record removed from data object on the client and passed to server - c.snNoteUpdate = function(name,sysID){ - - for (var i=0;i<c.data.notes.length;i++){ - if(c.data.notes[i].sys_id == name.data.sys_id){ - if(name.data.record.note){ - c.data.notes[i].note = name.data.record.note.display_value; - } - if(name.data.record.title){ - c.data.notes[i].title = name.data.record.title.display_value; - } - c.server.update(); - - } - } - } - - // Record removed from data object on the server and passed back to client - c.snNoteDelete = function(sysID){ - - c.server.get({ - action: 'snDeleteNote', - noteID: sysID - - }).then(function(r){ - c.data.notes = r.data.notes; - }); - - } - - spUtil.recordWatch($scope, "x_snc_createnotes_note", "numberANYTHING", function(name) { - console.log(name.data.operation); - console.log(name); - // Calls a Client Script function to do the update and pass the updated data object - // to the server. - if(name.data.operation == "update"){ - c.snNoteUpdate(name, name.data.sys_id); - } - // Calls a Client Script function which does the update on the server and passes - // the updated data object back to the client. - if(name.data.operation == "delete"){ - c.snNoteDelete(name.data.sys_id); - } - // Fast and easy... replace the client data object with the server data object - if(name.data.operation == "insert"){ - c.server.refresh(); - } - }); -} -]]></client_script> +}]]></client_script> <controller_as>c</controller_as> <css>h3.panel-title { font-size:20px; @@ -106,76 +30,43 @@ <public>false</public> <roles/> <script><![CDATA[(function() { - + //create an array to populate with notes data.notes = []; var noteGR = new GlideRecord('x_snc_createnotes_note'); noteGR.addQuery('user', gs.getUser().getID()); noteGR.orderByDesc('sys_created_on'); - noteGR.setLimit(options.maximum_records_to_display); noteGR.query(); while (noteGR.next()) { var noteObj = {}; - + //use service portal helper method to get some display values $sp.getRecordDisplayValues(noteObj, noteGR, 'number,title,sys_id'); - + //get the first 20 characters of the description noteObj.note = noteGR.getValue('note').slice(0,20); - + //push the populated obj into the array data.notes.push(noteObj); } - - if (input) { - if (input.action == 'newNote') { - var newNote = new GlideRecord('x_snc_createnotes_note'); - newNote.newRecord(); - var id = newNote.insert(); - data.noteID = id; - data.newNote = {}; - $sp.getRecordValues(data.newNote,newNote,"title,note,sys_id"); - - } - - if (input.action == 'snDeleteNote') { - var delNote = new GlideRecord('x_snc_createnotes_note'); - // The notes record should already be gone. Just - // making sure it no longer exists. - if(delNote.get(input.noteID)){ - delNote.deleteRecord(); - } - - } - - } -} -)(); -]]></script> +})();]]></script> <servicenow>false</servicenow> <sys_class_name>sp_widget</sys_class_name> <sys_created_by>admin</sys_created_by> <sys_created_on>2019-05-30 18:13:04</sys_created_on> <sys_id>06948fa8db3133000613a08a4896194c</sys_id> - <sys_mod_count>15</sys_mod_count> + <sys_mod_count>20</sys_mod_count> <sys_name>Notes List</sys_name> <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> <sys_policy/> <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> <sys_update_name>sp_widget_06948fa8db3133000613a08a4896194c</sys_update_name> <sys_updated_by>admin</sys_updated_by> - <sys_updated_on>2019-05-30 23:08:20</sys_updated_on> + <sys_updated_on>2023-10-09 02:42:32</sys_updated_on> <template><![CDATA[<div class="panel panel-default"> <div class="panel-heading clearfix"> <h3 class="panel-title pull-left"> - {{::c.options.title}} + ${Notes} </h3> - <button class="btn btn-default pull-right" ng-click="c.newNote()"> - <span class="glyphicon glyphicon-plus"></span> - </button> - </div> - <div class="panel-body"> - <input placeholder="Filter" class="form-control" ng-model="noteFilter" /> </div> - <div class="list-group"> - <a class="list-group-item" ng-click="c.selectItem($index)" ng-repeat="note in data.notes | filter: noteFilter"> + <a class="list-group-item" ng-click="c.selectItem($index)" ng-repeat="note in data.notes"> <h4 class="list-group-item-heading"> {{note.title}} </h4> diff --git a/update/sp_widget_7a7543e8db3133000613a08a4896195e.xml b/update/sp_widget_7a7543e8db3133000613a08a4896195e.xml index 72b209c..d3d42a9 100644 --- a/update/sp_widget_7a7543e8db3133000613a08a4896195e.xml +++ b/update/sp_widget_7a7543e8db3133000613a08a4896195e.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?><record_update table="sp_widget"> <sp_widget action="INSERT_OR_UPDATE"> <category>custom</category> - <client_script><![CDATA[function($scope,$rootScope,spModal,spUtil) { + <client_script><![CDATA[function($scope,$rootScope) { /* widget controller */ var c = this; @@ -16,38 +16,13 @@ }); }); - c.updateNote = function(updateType) { - c.server.get({ - action: 'updateNote', - noteID: c.data.noteID, - noteBody: c.data.note, - noteTitle: c.data.title - }).then(function(r) { - // When the promise is returned, emit the change - if (updateType == 'title' || updateType == 'body') { - $rootScope.$emit('updateTitle', r.data); - } - }); - } - c.confirmDelete = function(){ - spModal.confirm("Are you sure you want to delete this Note record?").then(function(confirmed){ - if(confirmed){ - c.deleteNote(); - } - }); - } - c.deleteNote = function() { - c.server.get({ - action: 'deleteNote', - noteID: c.data.noteID - }).then(function(r) { - spUtil.addTrivialMessage("The " + c.data.title + " record has been deleted.") - $rootScope.$emit('deleteNote', c.data.noteID); - c.data.title = ''; - c.data.note = ''; - c.data.noteID = ''; - }); - } + c.server.get({ + action: 'updateNote', + noteID: c.data.noteID, + noteBody: c.data.note, + noteTitle: c.data.title + }).then(function(r) { + }); } ]]></client_script> <controller_as>c</controller_as> @@ -66,6 +41,7 @@ <public>false</public> <roles/> <script><![CDATA[(function() { + /* populate the 'data' object */ if (input && input.noteID) { var note = new GlideRecord('x_snc_createnotes_note'); @@ -78,15 +54,6 @@ note.title = input.noteTitle; note.note = input.noteBody; note.update(); - // Need to update the data object with the new title - // and first 20 characters of the note (do not want to write huge - // strings to the Notes List widget) - data.title = note.getValue('title'); - data.note = note.getValue('note').slice(0,20); - } - - else if (input.action == 'deleteNote') { - note.deleteRecord(); } } } @@ -96,21 +63,20 @@ <sys_created_by>admin</sys_created_by> <sys_created_on>2019-05-30 18:16:57</sys_created_on> <sys_id>7a7543e8db3133000613a08a4896195e</sys_id> - <sys_mod_count>12</sys_mod_count> + <sys_mod_count>19</sys_mod_count> <sys_name>Notes Body</sys_name> <sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package> <sys_policy/> <sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope> <sys_update_name>sp_widget_7a7543e8db3133000613a08a4896195e</sys_update_name> <sys_updated_by>admin</sys_updated_by> - <sys_updated_on>2019-05-30 20:44:53</sys_updated_on> + <sys_updated_on>2023-10-09 07:03:53</sys_updated_on> <template><![CDATA[<div class="panel panel-default" ng-show="c.data.noteID"> <div class="panel-heading clearfix"> <div class="row"> - <div class="col-md-11"> + <div class="col-md-12"> <input class="form-control" id="note-title" ng-model="c.data.title" ng-change="c.updateNote('title')" ng-model-options="{debounce: 1000}"/> </div> - <delete-button-confirm></delete-button-confirm> </div> </div> <div class="panel-body">