Actions114
- AI Actions
- AI Advanced OCR
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Enitity Detection
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate Javascript Code
- Generate Python Code
- Language Detection
- Mood Detection
- PDF OCR
- Picture Object Recognition
- Picture Text Recognition
- Redact Sensitive Information From PDF
- Too Long To Read
- Transcribe
- Translation
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Storage → Global Variables
AI-generatedOverview
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
- Add a new global variable named 'apiKey' with a specific value to be used in multiple workflow steps.
- Retrieve the value of a global variable 'userCount' to make decisions based on the number of users.
- Delete a global variable by its ID to clean up unused or sensitive data.
- 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
- 0CodeKit Node Documentation - Official documentation for the 0CodeKit node in n8n, including usage and configuration details.