0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Storage → Manage Global Variables

AI-generated

Overview

The node provides utilities to manage global variables within a storage system. It supports creating, retrieving, deleting, and listing global variables. This functionality is useful for workflows that need to store and reuse configuration values, flags, or other data persistently across executions.

Common scenarios include:

  • Storing API tokens or credentials temporarily during workflow execution.
  • Keeping track of counters or state flags shared between different parts of a workflow.
  • Managing feature toggles or environment-specific settings dynamically.

For example, you can create a global variable named "apiRateLimit" with a value of "1000", retrieve it later to check the current limit, delete obsolete variables, or list all existing global variables to audit stored data.

Properties

Name Meaning
Operation Type The action to perform on global variables. Options: Create Variable, Get Variable, Delete Variable, List All Variables.
Variable Name The name identifier of the global variable (required for Create and Get operations).
Variable Value The value to assign to the global variable (required for Create operation).
Variable ID The unique identifier of the global variable to delete (required for Delete operation).

Output

The node outputs JSON data representing the result of the selected operation:

  • Create Variable: Returns confirmation and details of the created variable.
  • Get Variable: Returns the value and metadata of the requested variable.
  • Delete Variable: Returns confirmation of deletion.
  • List All Variables: Returns an array of all global variables with their IDs, names, and values.

No binary data output is involved in these operations.

Dependencies

  • Requires an API key credential to authenticate requests to the external storage service at https://prod.0codekit.com.
  • The node sends HTTP POST requests to endpoints under /storage/globalvariables/ with the operation type appended.
  • No additional environment variables are explicitly required beyond the API authentication.

Troubleshooting

  • Missing or invalid API key: The node will fail to authenticate. Ensure the API key credential is correctly configured.
  • Variable not found: When getting or deleting a variable by name or ID that does not exist, the node may return an error or empty response. Verify the variable exists by listing all variables first.
  • Deleting without correct Variable ID: Deletion requires the exact variable ID, not just the name. Use the list operation to obtain the correct ID.
  • Empty or invalid input fields: Required properties like Variable Name or Variable Value must be provided for respective operations; otherwise, the request will fail.

Links and References

Discussion