Import workflows and map their credentials using a multi form
Purpose This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily. How it works - A multi-form setup...
🔌 Nodes & Integrations Used (10)
📖 Implementation & Setup Guide
Purpose
This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily.
How it works
- A multi-form setup guides you through the entire process
- At the beginning you have two options:
- - Upload a workflow file (JSON)
- - Copy workflow from a remote n8n instance
- If you choose the second option, you get to choose one of your predefined (in the Settings node) remote instances first, then it retrieves a list of all the workflows using the n8n API which you then can choose a workflow from.
- Now both initial options come together - the workflow file is being processed
- In parallel all credentials of the current instance are being retrieved using the Execute Command node
- The next form page enables a mapping of all the credentials used in the workflow. The matching happens between the names (because one workflow can contain different credentials of the same type) of the original credentials and the ones available on the current instance. Every option then shows all available credentials of the same type. In addition the user has always the choice to create a new credential on the fly.
- For every option which was set to create a new credential, an empty credential is being created on the current instance using the n8n API. An emoji is being appended to the name, which indicates that it needs to be populated.
- Finally the workflow gets updated with the new credential ID’s and created on the current instance using the n8n API. Then the user gets a message, if the process has succeeded or not.
Setup
- Select your credentials in the nodes which require those
- Configure your remote instance(s) in the Settings node. (You can skip this step, if you only want to use the File Upload feature)
- - Every instance is defined as object with the keys *name*, *apiKey* and *baseUrl*. Those instances are then wrapped inside an array. You can find an example described within a note on the workflow canvas.
How to use
- Grab the (production) URL of the Form from the first node
- Open the URL and follow the instructions given in the multi-form
Disclaimer
- Security: Beware, that all credentials are being decrypted and processed within the workflow. Also the API keys to other n8n instances are stored within the workflow.
- This solution is primarily meant for transferring data between testing environments. For production use consider the n8n enterprise edition which provides a **reliable** way to deploy workflows between different environments without the need of manual credential mapping.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Import_workflows_and_map_their_credentials_using_a_multi_form.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related Docs, PDF & OCR Workflows
View All in Docs, PDF & OCR →Add articles to a Notion list by accessing a Discord slash comma
This workflow allows you to add articles to a Notion reading list by accessing a Discord slash command. Prerequisites - A Notion account and [credentials](),...
Adobe PDF Services API Automation
Production-ready n8n automation template for Adobe PDF Services API Automation built by AhiXLight. Seamlessly connects HTTP Request, Execute Workflow Trigger, Dropbox with 20 configured nodes.
Adobe PDF Services API Workflow
Production-ready n8n automation template for Adobe PDF Services API Workflow built by AhiXLight. Seamlessly connects HTTP Request, Execute Workflow Trigger, Dropbox with 20 configured nodes.
AI Brand Voice Content Generator
Production-ready n8n automation template for AI Brand Voice Content Generator built by AhiXLight. Seamlessly connects Lm Chat Open Ai, Information Extractor, HTTP Request with 27 configured nodes.