Identify and Merge Duplicates#114
Identify and Merge Duplicates#114shivamvish160 wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Conversation
|
✅ Valid PR for ActionPack Thank you for your contribution. This PR complies with the CONTRIBUTING.md. |
rohi-v
left a comment
There was a problem hiding this comment.
Please mention the expected output too in the description.
Thanks for pointing that out @rohi-v |
|
Instead of deleting the record, We can create some field and flag it out as mentioned in the #102 Also I see different output than mentioned here. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one. |
Can you please provide input which you gave? |


This PR is raised to provide solution of the issue raised in action pack repo
here is the issue link: #102
ServiceNow Action: Identify and Merge Duplicates
This ServiceNow Action identifies duplicate records in a specified table based on user-defined match fields and merges them using a simple conflict resolution strategy. It returns a list of merged record pairs for audit and review.
📥 Inputs
table_namematch_fields📤 Outputs
merged_pairsoriginalandmergedrecord sys_idserrorExample
Inputs:
{
"table_name": "incident",
"match_fields": "caller_id,short_description"
}
Outputs:
{
"merged_pairs": [
{ "original": "abc123", "merged": "def456" },
{ "original": "ghi789", "merged": "jkl012" }
]
}