Simple file based key value store GetKey
Read a value by key from a local json file. Related workflow: WriteKey Create a subfolder in your n8n homedir: /home/node/.n8n/local-files. In docker look at...
🔌 Nodes & Integrations Used (3)
📖 Implementation & Setup Guide
Read a value by key from a local json file.
Related workflow: [WriteKey](https://n8n.io/workflows/1407)
Create a subfolder in your n8n homedir: `/home/node/.n8n/local-files`. In docker look at the data path and create a subfolder `local-files`. Set the correct access rights `chmod 1000.1000 local-files`.
Put the workflow code in a new workflow named `GetKey`.
Create another workflow with a `function item`:
```js return { file: '/4711.json', // 4711 should be your workflow id key: 'MyKey', default: 'Optional returned value if key is empty / not exists' } ```
Pipe the `function item` to an `Execution Workflow` that calls the `GetKey` workflow.
It would be nice if we could get someday a shiny built-in n8n node that does the job. :)
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Simple file based key value store _GetKey_.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 General Automation Workflows
View All in General Automation →Generate Application Copy
Production-ready n8n automation template for Generate Application Copy built by AhiXLight. Seamlessly connects Execute Workflow Trigger, OpenAI with 4 configured nodes.
2-way sync Google Contacts and Notion
Sync your Google Contacts with your Notion database. You can filter contacts by label or sync all contacts. All contact information is kept in sync between G...
2D Image to 3D Model Automation
Production-ready n8n automation template for 2D Image to 3D Model Automation built by AhiXLight. Seamlessly connects HTTP Request, Google Sheets, Google Drive with 17 configured nodes.
2 way sync assignments completion between Canvas LMS and Notion
Syncs assignments and completion states to and fro between Canvas LMS and a Notion database. Automatically triggers every 2 hours during the schoolday by def...