Overview
This node, named Global Constants, retrieves global constants stored in credentials and adds them to the workflow data. It allows users to either put all constants under a single key or distribute them as separate keys in the output JSON. This is useful for workflows that need to access predefined constant values globally, such as configuration settings or fixed parameters, without hardcoding them in multiple places.
Use Case Examples
- A workflow that needs to use API keys or fixed URLs stored as global constants can use this node to inject those values into the data stream.
- A data transformation workflow can use this node to add constant values that are required for calculations or tagging records.
Properties
| Name | Meaning |
|---|---|
| Put All Constants in One Key | Determines whether all constants are grouped under a single key or output as separate keys. |
| Constants Key Name | The key name under which all constants are grouped if 'Put All Constants in One Key' is true. |
Output
JSON
- An object containing all global constants if 'Put All Constants in One Key' is true. - Individual constants added directly to the JSON if 'Put All Constants in One Key' is false.
Dependencies
- An API key credential containing global constants
Troubleshooting
- If no credentials are set or the global constants are empty, the node outputs the constants as an empty object or does not modify input data.
- Ensure the credential with global constants is properly configured and accessible to avoid errors during execution.