{
  "name": "Compare lists and identify common items & differences using custom keys",
  "nodes": [
    {
      "id": "e13aefae-e377-4ebd-acd9-fb70aaefecfe",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        0,
        20
      ]
    },
    {
      "id": "85588542-5fcb-415f-b189-bbb38f889bb5",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        440,
        320
      ]
    },
    {
      "id": "f1bee89d-54b2-4cf7-87f6-45e2f940b763",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Pass in two list of item that you like to compare, as well as the key"
      }
    },
    {
      "id": "f04f1c66-e219-46a1-99ff-9e3df7f8d2fa",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        220,
        -1
      ]
    },
    {
      "id": "4554a775-e6d4-4ae0-85ff-9564866d1464",
      "name": "validation_message 1",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        -280
      ]
    },
    {
      "id": "0fa56f6d-3a28-4382-9916-ddaeb31e0310",
      "name": "validation_message 2",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        -80
      ]
    },
    {
      "id": "2c4b3b98-7a20-418c-af4e-4c2967532e31",
      "name": "validation_message 3",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        120
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        []
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "validation_message 1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "validation_message 2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "validation_message 3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}