From 5be46a6717a29426348f9df1de3dce30eaaec97b Mon Sep 17 00:00:00 2001 From: Rajasree2004 <96932400+Rajasree2004@users.noreply.github.com> Date: Tue, 14 Oct 2025 13:36:04 +0530 Subject: [PATCH 1/4] Update README.md Change of title in Readme --- Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md b/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md index 07367d9014..1235f2b8e2 100644 --- a/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md +++ b/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md @@ -1,4 +1,4 @@ -# Compare Two Records Using GlideRecord (Global Scope) +# Comparing 2 records and identify differences This snippet compares two records from the same table in ServiceNow field-by-field using the **GlideRecord API**. It’s useful for debugging, verifying data after imports, or checking differences between two similar records. From ad44bccd8fa99abc341e51d81a200b6a634134be Mon Sep 17 00:00:00 2001 From: Rajasree2004 Date: Tue, 14 Oct 2025 14:34:10 +0530 Subject: [PATCH 2/4] Update : Title in Readme file based on review --- Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md b/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md index 1235f2b8e2..8d65f47080 100644 --- a/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md +++ b/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md @@ -1,4 +1,4 @@ -# Comparing 2 records and identify differences +# Comparing 2 records and identify differences This snippet compares two records from the same table in ServiceNow field-by-field using the **GlideRecord API**. It’s useful for debugging, verifying data after imports, or checking differences between two similar records. @@ -25,6 +25,7 @@ Run this script in a **Background Script** or **Fix Script**: compareRecords('incident', 'sys_id_1_here', 'sys_id_2_here', false); ``` --- + ## Example Output ```js short_description: "Printer not working" vs "Printer offline" From cc0a6cd337f2abad17e89d4e28e97ca31711cf24 Mon Sep 17 00:00:00 2001 From: Rajasree2004 Date: Tue, 14 Oct 2025 14:38:02 +0530 Subject: [PATCH 3/4] Update : Title in Readme file based on review --- Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md b/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md index 8d65f47080..7493655c30 100644 --- a/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md +++ b/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md @@ -1,4 +1,4 @@ -# Comparing 2 records and identify differences +# Comparing 2 records and identify differences (GlideRecord) This snippet compares two records from the same table in ServiceNow field-by-field using the **GlideRecord API**. It’s useful for debugging, verifying data after imports, or checking differences between two similar records. From 695fed88df74f75288151db3f1745526e4993afa Mon Sep 17 00:00:00 2001 From: Rajasree2004 Date: Tue, 14 Oct 2025 14:57:30 +0530 Subject: [PATCH 4/4] Update : Title in Readme file based on review --- Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md | 2 +- .../GlideRecord/Compare_2_records/compareRecords.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md b/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md index 7493655c30..f5e3e968e2 100644 --- a/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md +++ b/Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md @@ -1,4 +1,4 @@ -# Comparing 2 records and identify differences (GlideRecord) +# Comparing 2 records and identify differences This snippet compares two records from the same table in ServiceNow field-by-field using the **GlideRecord API**. It’s useful for debugging, verifying data after imports, or checking differences between two similar records. diff --git a/Core ServiceNow APIs/GlideRecord/Compare_2_records/compareRecords.js b/Core ServiceNow APIs/GlideRecord/Compare_2_records/compareRecords.js index 2988299c0d..f13ec02742 100644 --- a/Core ServiceNow APIs/GlideRecord/Compare_2_records/compareRecords.js +++ b/Core ServiceNow APIs/GlideRecord/Compare_2_records/compareRecords.js @@ -1,4 +1,5 @@ /** + * Comparing 2 records and identify differences (GlideRecord) * Compare two records in a ServiceNow table field-by-field. * Logs all field differences between the two records, including display values. *