Identify and Merge Duplicate Action#118
Identify and Merge Duplicate Action#118shivamvish160 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.
Hi @rohi-v |
|
table_name is incident and match_fields as caller_id and also tried with caller_id and short_description too. |
|
@rohi-v For the same input i am getting the output for passing table as incident and match fields as caller_id,short_description |
|
Thank You for your submission It's working for small amount of data and not able to return properly for large run. The output types of the script step and outputs are causing this issue. |
|
Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one. |



This PR is raised to provide solution for one of the active issues in Action pack repo
here is the link of issue: #102
ServiceNow Flow Designer Action: Flag Duplicates Using
u_duplicate_of📌 Description
This Flow Designer Action identifies and flags duplicate records in a specified ServiceNow table using a reference field
u_duplicate_of. It compares records based on user-defined match fields and links duplicates to their original entries without deleting any data.🎯 Purpose
🧾 Inputs
NameTypeDescriptiontable_nameStringName of the table to scan for duplicates|
match_fields| String | Comma-separated list of fields used to detect duplicates |📤 Outputs
merged_pairsoriginalandflaggedrecord sys_idserror🚀 Usage Example
Inputs:
{
"table_name": "incident",
"match_fields": "caller_id,short_description"
}
Outputs:
{
"merged_pairs": [
{ "original": "abc123", "flagged": "def456" },
{ "original": "ghi789", "flagged": "jkl012" }
],
"