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
Operator → Advanced Switch
AI-generatedOverview
The node performs an advanced switch operation on JSON data within the 'Operator' resource. It allows users to provide JSON either externally via a URL or internally as a stringified JSON content. The node then processes the JSON data based on multiple keys specified by the user, enabling complex conditional logic or data extraction scenarios. This is useful for workflows that require dynamic decision-making or filtering based on JSON content.
Use Case Examples
- A user inputs a URL pointing to external JSON data and specifies keys to extract or evaluate, enabling conditional branching in a workflow.
- A user provides stringified JSON content directly in the node and defines keys to perform advanced switching logic for data transformation or routing.
Properties
| Name | Meaning |
|---|---|
| Code Variables | Allows defining multiple code variables with names or IDs and their corresponding values to be used in the code editor for the selected function. |
| External JSON? | Boolean flag to indicate whether the JSON data is provided externally via a URL or internally as stringified content. |
| Url | The URL from which to fetch the external JSON data. Required if 'External JSON?' is true. |
| Content | Stringified JSON content provided directly in the node. Required if 'External JSON?' is false. |
| Keys | Multiple keys specified by the user, each on a new line, used to perform the advanced switch operation on the JSON data. |
Output
JSON
json- The processed output from the advanced switch operation, typically an array or object derived from the input JSON based on the specified keys.
Dependencies
- An API key credential for the codeKit API is required to authenticate requests.
Troubleshooting
- If the 'Content' JSON string is invalid or malformed, the node will throw a JSON parsing error. Ensure the JSON is valid and properly stringified before input.
- If 'External JSON?' is set to true but the URL is unreachable or returns invalid JSON, the node will fail. Verify the URL and network connectivity.
- Incorrect or missing keys in the 'Keys' property may result in unexpected output or errors. Ensure keys are correctly specified, each on a new line.