Back to Templates
This workflow compares two lists of objects (List A and List B) using a user-specified key (e.g. email
, id
, domain
) and returns:
listA
: the first list of itemslistB
: the second list of itemskey
: the field name to use for comparisoncommon
: items with matching keys (only one version retained)onlyInA
: items found only in List AonlyInB
: items found only in List B{
"key": "email",
"listA": [
{ "email": "[email protected]", "name": "Alice" },
{ "email": "[email protected]", "name": "Bob" }
],
"listB": [
{ "email": "[email protected]", "name": "Bobby" },
{ "email": "[email protected]", "name": "Carol" }
]
}
common
: [ { "email": "[email protected]", "name": "Bob" } ]
onlyInA
: [ { "email": "[email protected]", "name": "Alice" } ]
onlyInB
: [ { "email": "[email protected]", "name": "Carol" } ]
This workflow is useful for internal data auditing, list reconciliation, transaction reconciliation, or pre-processing sync jobs.