{
  "name": "Reconnect migrated workflows and datatables between n8n instances",
  "nodes": [
    {
      "id": "ccdf19d1-7ec6-4577-9677-14276b5ffef4",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -128,
        -256
      ]
    },
    {
      "id": "a24c2a20-d203-4207-9257-e08794aac97c",
      "name": "orig datatables",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        352,
        -256
      ]
    },
    {
      "id": "06d29ada-aa31-4208-82c1-a6edcc20319c",
      "name": "orig workflows",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        544,
        -256
      ]
    },
    {
      "id": "830b73ef-e4ab-4449-afe8-2c2518e8d864",
      "name": "new datatables",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        768,
        -256
      ]
    },
    {
      "id": "cc90dbab-a7ed-4ee4-b1e4-625b8a17f663",
      "name": "new workflows",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        992,
        -256
      ]
    },
    {
      "id": "67d139dc-a09b-4f98-ae18-6c71081b32eb",
      "name": "config",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        -256
      ]
    },
    {
      "id": "5152b84d-c7ea-4f39-aa3f-61d525fdb92e",
      "name": "map",
      "type": "n8n-nodes-base.code",
      "position": [
        1216,
        -256
      ]
    },
    {
      "id": "9327e51c-6a05-4e9c-883a-d1a13250bea2",
      "name": "update flow nodes",
      "type": "n8n-nodes-base.code",
      "position": [
        1440,
        -256
      ]
    },
    {
      "id": "11f2f9e7-4a81-4339-af52-2e8d6493f2fd",
      "name": "update new workflows",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1712,
        -256
      ]
    },
    {
      "id": "06dc6231-33ae-4ab7-861d-278b3272a6b7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -544
      ],
      "parameters": {
        "width": 256,
        "height": 464,
        "content": "## Config\nThis node just stores the urls as variables so you only have to update them once.\n\n**Instructions**\n- Set the orig_url to be the path to your original n8n install\n- Set the new_url to be the"
      }
    },
    {
      "id": "6bb19ec8-241a-45d1-8078-5f4084549b28",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -544
      ],
      "parameters": {
        "width": 384,
        "height": 464,
        "content": "## Get Originals\nThese nodes grab all datatables and workflows from the original n8n install via the n8n API.\n\n**Instructions**\n- You'll need to create an n8n credential for your **original** n8n inst"
      }
    },
    {
      "id": "334b94ce-ded5-429e-b62e-c1cd4c38428f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -544
      ],
      "parameters": {
        "width": 384,
        "height": 464,
        "content": "## Get New\nThese nodes grab all datatables and workflows from the new n8n install via the n8n API.\n\n**Instructions**\n- You'll need to create an n8n credential for your **new** n8n instance and select "
      }
    },
    {
      "id": "87dfee3f-3ebe-4f87-9cb6-40f14505a2b7",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        -544
      ],
      "parameters": {
        "width": 384,
        "height": 464,
        "content": "## The Magic\n1. First node creates an entity map of all the datatables and workflows from both instances and stores the original and new ID.\n2. Second node then goes through all your new workflows loo"
      }
    },
    {
      "id": "108df2be-66c4-45f8-852b-6bc7afa019de",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1616,
        -544
      ],
      "parameters": {
        "width": 272,
        "height": 464,
        "content": "## Update\nThis node will now update each of the new workflows with the updated JSON.\n\n**Instructions**\n- You'll need to select the n8n credential for you **NEW** n8n instance.  ***BE CAREFUL!!!***"
      }
    },
    {
      "id": "799578e4-b44f-42ee-b0ec-aeeafe6b8fbe",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -544
      ],
      "parameters": {
        "width": 496,
        "height": 464,
        "content": "## Migration Helper - Automated Reconnection for Workflows + Datatables\n**Purpose**\nThis workflow is designed to automate the re-wiring of all your subworkflows and datatable actions after migrating t"
      }
    }
  ],
  "connections": {
    "map": {
      "main": [
        [
          {
            "node": "update flow nodes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "config": {
      "main": [
        [
          {
            "node": "orig datatables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "new workflows": {
      "main": [
        [
          {
            "node": "map",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "new datatables": {
      "main": [
        [
          {
            "node": "new workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "orig workflows": {
      "main": [
        [
          {
            "node": "new datatables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "orig datatables": {
      "main": [
        [
          {
            "node": "orig workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "update flow nodes": {
      "main": [
        [
          {
            "node": "update new workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}