Actions3
Overview
This node, named Vars Pro Storage, allows users to store, retrieve, and delete JSON data in local files at either the execution level or workflow level. It is useful for persisting data between workflow executions or sharing data across executions within the same workflow. For example, it can be used to save intermediate results, cache data, or maintain state information locally in JSON files named by execution ID or workflow ID.
Use Case Examples
- Storing user input data during a workflow execution for later retrieval.
- Retrieving shared configuration data stored at the workflow level for use in multiple executions.
- Deleting obsolete data entries from the local JSON storage to keep data files clean.
Properties
| Name | Meaning |
|---|---|
| Data Type | Selects the scope of the data storage: either per execution (creates independent JSON files named by execution ID) or per workflow (shared JSON file named by workflow ID). |
| Key | The key name to operate on within the JSON data. Supports nested paths (e.g., 'user.name'). For 'get' operation, leaving this empty retrieves all data. |
| Options | Additional options for the operation. |
Output
JSON
operation- The operation performed (set, get, or delete).dataType- The data type scope used (execution or workflow).key- The key used in the operation.result- The result of the operation, such as the data retrieved, confirmation of set or delete.filePath- The file path of the JSON file used for storage.workflowId- The ID of the workflow.executionId- The execution ID if data type is execution level.
Dependencies
- Requires local file system access to read/write JSON files.
Troubleshooting
- Common issues include file access permissions preventing reading or writing JSON files. Ensure the node has appropriate permissions to the file system path.
- Errors may occur if the JSON data is malformed or if the key path is invalid. Verify the key paths and JSON formatting.
- If the file does not exist and 'Auto Create File' is false, operations may fail. Enable auto creation or ensure the file exists beforehand.