Comparing 2 records and show differences.#2047
Comparing 2 records and show differences.#2047rohi-v merged 3 commits intoServiceNowDevProgram:mainfrom
Conversation
Core ServiceNow APIs/GlideRecord/Compare_2_records/compareRecords.js
Outdated
Show resolved
Hide resolved
|
Hi @rohi-v, I have made the changes you gave on a new commit |
|
Thank you for making the changes. I would suggest you to add one more check here if system fields should be excluded or included during comparison. compareRecords('incident', 'sys_id_1_here', 'sys_id_2_here',<<systemfields_check>>); systemfields_check - if true then include that check in your logic, If false then ignore the system fields comparison. Just a suggestion, let me know your thoughts. @Rajasree2004. |
|
Yeah sure i will make the changes |
|
Hi @rohi-v, I have implemented system field check. Please let me know about any other changes. |
|
Looks Good, Please Mention in readme file If this works for all scopes or not and change the title. |
|
@rohi-v I have already mentioned the scope in README file. |
|
@Rajasree2004 Can you please change the title too? |
|
@rohi-v I changed the title previously....if it is not that good can you please suggest one for me |
|
@Rajasree2004 How about 'Comparing 2 records and identify differences' |
|
@rohi-v Sorry I wasn't available yesterday.....I will change the title now |
PR Description:
This pull request adds a new GlideRecord snippet that compares two records field-by-field to identify differences between them.
The snippet helps developers quickly detect mismatched values across records for debugging, data validation, or record synchronization purposes.
Files Added:
Core ServiceNow APIs/GlideRecord/Compare_2_records/compareRecords.js
Core ServiceNow APIs/GlideRecord/Compare_2_records/README.md
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions