0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Storage → Global Variables

AI-generated

Overview

This node operation manages global variables within a storage system. It supports adding new global variables, retrieving existing ones, deleting variables by ID, and listing all global variables. This is useful for workflows that need to store and manipulate global state or configuration values accessible across different parts of an automation.

Use Case Examples

  1. Add a new global variable named 'apiKey' with a specific value to be used in multiple workflow steps.
  2. Retrieve the value of a global variable 'userCount' to make decisions based on the number of users.
  3. Delete a global variable by its ID to clean up unused or sensitive data.
  4. List all global variables to audit or display current stored values.

Properties

Name Meaning
Code Variables A collection of code variables defined in the code editor for the selected function, allowing dynamic assignment of variable values.
Choose a JSON Bin Operation The specific global variable operation to perform: add, get, delete, or list.
Variable Name The name of the global variable to add or retrieve.
Variable Value The value to assign to a new global variable.
Variable ID The unique identifier of the global variable to delete. Required for deletion to ensure the correct variable is removed.

Output

JSON

  • variableId - The unique identifier of the global variable.
  • variableName - The name of the global variable.
  • variableValue - The value stored in the global variable.
  • createdAt - Timestamp when the global variable was created.
  • updatedAt - Timestamp when the global variable was last updated.

Dependencies

  • An API key credential for authenticating requests to the CodeKit API.

Troubleshooting

  • Ensure the variable name is unique when adding a new global variable to avoid conflicts.
  • When deleting a global variable, use the correct variable ID obtained from the list operation.
  • If retrieval of a global variable fails, verify the variable name exists and is spelled correctly.
  • Check API key credentials if requests fail due to authentication errors.

Links

Discussion