Skip to main content

Reconnect migrated workflows and datatables between n8n instances

Workflow preview

Workflow preview
100%
Reconnect migrated workflows and datatables between n8n instances preview
Open on n8n.io

1. Workflow Overview

Purpose This workflow is designed to automate the re wiring of all your subworkflows and datatable actions after migrating them to a new n8n instance. What it does Recursive ID Swapping : Takes a m...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.n8n, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Joe.

Original n8n.io source

1.1 Workflow description

Title
Reconnect migrated workflows and datatables between n8n instances
Workflow name
Reconnect migrated workflows and datatables between n8n instances

Purpose This workflow is designed to automate the re-wiring of all your subworkflows and datatable actions after migrating them to a new n8n instance.

What it does

  • Recursive ID Swapping: Takes a master dictionary of your old IDs -> new IDs, loops through your workflow JSONs, and recursively hunts down and replaces the node parameters. (Saves you from having to know if the ID is nested in an options object or at the root).

  • Bypasses the strict API schema: If you've ever tried to push an updated workflow back to n8n via the API and hit the dreaded request/body/settings must NOT have additional properties error, this script fixes that. It strips out the legacy settings, id, and createdAt properties before sending the PUT request, so the new instance accepts the payload cleanly.

  • Fixes the stringification bug: Wraps the payload properly so you don't accidentally send [object Object] to the API.

Instructions Basically you just need to define the relevant URL's and setup your n8n API credentials - then VERY CAREFULLY select the right credentials in the right nodes. Full instructions can be found in the sticky notes.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - orig datatables

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 3 - orig workflows

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 4 - new datatables

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 5 - new workflows

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 6 - config

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - map

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - update flow nodes

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - update new workflows

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Reconnect migrated workflows and datatables between n8n instances
Complexity advanced
Nodes 15
Categories DevOps
Author Joe
Published 21 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14218/14218.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Reconnect migrated workflows and datatables between n8n instances do?

Purpose This workflow is designed to automate the re wiring of all your subworkflows and datatable actions after migrating them to a new n8n instance. What it does Recursive ID Swapping : Takes a m...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.