Actions3
Overview
This node, named Vars Pro Storage, allows users to store, retrieve, and delete JSON data locally at either the execution level or workflow level. It is useful for managing temporary or persistent data within n8n workflows, such as caching results, sharing data between workflow executions, or cleaning up stored data. For example, a user can save API response data during a workflow execution and retrieve it later or delete obsolete data to maintain storage hygiene.
Use Case Examples
- Storing user session data during a workflow execution for later retrieval.
- Sharing configuration settings across multiple workflow executions by saving data at the workflow level.
- Deleting specific keys from stored JSON data to update or clean the data store.
Properties
| Name | Meaning |
|---|---|
| Data Type | Selects the scope of the data storage, either per execution (unique file per execution) or shared across the workflow (single file for all executions). |
| Key | The key name in the JSON data to operate on. Supports nested paths (e.g., 'user.name'). Required for set and delete operations. |
| Options | Additional options for the operation, such as whether to automatically create the file if it does not exist. |
Output
JSON
operation- The operation performed (set, get, or delete).dataType- The data type scope used (execution or workflow).key- The key in the JSON data that was operated on.result- The result of the operation, such as the data set, retrieved, or confirmation of deletion.filePath- The file path of the JSON file used for storage.workflowId- The ID of the workflow.executionId- The execution ID if the data type is execution level; undefined otherwise.
Dependencies
- Local file system access for reading and writing JSON files.
Troubleshooting
- Common issues include file access errors if the file path is invalid or permissions are insufficient.
- Errors may occur if the key path is invalid or if JSON parsing fails when setting data with malformed JSON strings.
- If the file does not exist and autoCreate option is false, operations may fail due to missing file.