Templates / Simple file based key value store (GetKey)

Simple file based key value store (GetKey)

Needs changes

by Peter · 1,161 views · created 2022-01-24 · File Management

Needs changes. This template uses 3 thing(s) that n8n 3.0 removes: Function Item (legacy), Read Binary File, Convert to/from binary data. 3 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
Function Item (legacy)
Config, ReturnValue
Code node, mode 'Run Once for Each Item'
Read Binary File
Read Binary File
Read/Write Files from Disk
Convert to/from binary data
BinaryToJSON
Convert to File or Extract from File

Nodes used (4)

What it does

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 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. :)

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.