0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node "0CodeKit" provides a versatile toolbox of no-code utilities across multiple domains, including AI, business, code execution, conversion, cryptography, date/time, image processing, PDF manipulation, storage, text operations, and user data generation. Specifically for the Storage resource with the Global Variables operation, it allows users to manage global variables by adding new variables, retrieving existing ones, deleting variables by ID, or listing all stored global variables.

This functionality is beneficial in scenarios where workflows need to share or persist small pieces of data globally across executions or nodes without relying on external databases. For example, you might store API tokens, counters, or configuration flags as global variables accessible throughout your automation.

Practical examples:

  • Add a global variable named "apiToken" with a secret value to be used by other nodes.
  • Retrieve the value of a global variable "lastRunTimestamp" to decide conditional logic.
  • List all global variables to audit or debug stored data.
  • Delete obsolete global variables by their unique IDs to clean up storage.

Properties

Name Meaning
Code Variables A collection of code variables defined in the code editor for selected functions. Each variable has a name or ID (selectable from a list or via expression) and an associated string value. Useful for passing dynamic values into code-based operations.
Choose a JSON Bin Operation The specific action to perform on global variables:
- Add a New Global Variable
- Get a Global Variable
- Delete a Global Variable
- List All Your Global Variables
Variable Name The name of the global variable to add or retrieve. Required when adding or getting a variable.
Variable Value The string value to assign to a new global variable. Required when adding a variable.
Variable ID The unique identifier of a global variable to delete. Required when deleting a variable. Can be obtained by listing all variables first.

Output

The node outputs a JSON array containing the results of the requested global variables operation:

  • Add a New Global Variable: Returns details of the newly created variable, typically including its name, value, and unique ID.
  • Get a Global Variable: Returns the value and metadata of the specified variable.
  • Delete a Global Variable: Returns confirmation of deletion or status information.
  • List All Your Global Variables: Returns an array of all global variables with their names, values, and IDs.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authentication with the underlying 0CodeKit service.
  • The node makes HTTP POST requests to the 0CodeKit API endpoints corresponding to the Storage/Global Variables operations.
  • No additional environment variables are explicitly required beyond the API credential.

Troubleshooting

  • Common Issues:

    • Attempting to delete a global variable with an incorrect or missing variable ID will fail; ensure you use the correct ID obtained from the list operation.
    • Adding a variable without specifying both name and value will cause errors.
    • Retrieving a non-existent variable name may return empty or error responses.
    • Network or authentication failures if the API key credential is invalid or missing.
  • Error Messages:

    • Errors related to missing parameters (e.g., variableName, variableValue, variableId) indicate incomplete input configuration.
    • API request failures may return HTTP error codes; verify network connectivity and API key validity.
    • JSON parsing errors could occur if the response format changes unexpectedly.

To resolve issues, double-check property inputs, ensure the API key credential is correctly configured, and use the "list" operation to confirm existing variables and their IDs before deletion.

Links and References

Discussion