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 across workflow executions or sharing data within a workflow. For example, it can create independent JSON files for each execution or maintain a shared JSON file for the entire workflow, enabling scenarios like caching intermediate results, storing user session data, or managing configuration settings.
Use Case Examples
- Set a key-value pair in a JSON file specific to the current execution.
- Retrieve a value by key from a shared workflow-level JSON file.
- Delete a key from the execution-level JSON file.
Properties
| Name | Meaning |
|---|---|
| Data Type | Selects whether to operate on execution-level or workflow-level JSON data, determining the file scope and naming. |
| Key | The key name to set, get, or delete in the JSON file. Supports nested paths like 'user.name'. |
| Value | The value to set for the specified key. Supports expressions and JSON strings. |
| Options | Additional options 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 targeted: execution or workflow.key- The key used in the operation.result- The result of the operation, e.g., the value set, retrieved, or confirmation of deletion.filePath- The file path of the JSON file used.workflowId- The ID of the workflow.executionId- The execution ID if dataType is execution-level.
Dependencies
- Local file system access for reading and writing JSON files
Troubleshooting
- Common issues include file access errors if the file does not exist and autoCreate option is false.
- Errors may occur if the value string is invalid JSON when attempting to parse it; in such cases, the value is treated as a plain string.
- If an unsupported operation is specified, the node throws an error indicating the operation is unsupported.