Overview
This node, named "Example Node," is a basic transformation node designed to add or overwrite a string property in each input item. It takes an input string from the user and sets this string as the value of the myString field in the JSON data of every incoming item. This node is useful when you want to inject or update a specific string value across multiple data items in a workflow.
Practical examples:
- Adding a constant tag or label to all incoming data items.
- Overwriting or setting a specific field with a user-defined string before passing data downstream.
- Testing or debugging workflows by inserting known values into the data stream.
Properties
| Name | Meaning |
|---|---|
| My String | The description text; a string value to set on each item's myString field. Placeholder shown as "Placeholder value". |
Output
The output consists of the same number of items as the input. Each output item contains a JSON object where the myString property is set to the user-provided string value.
Output structure example for one item:
{
"myString": "user provided string"
}
No binary data is produced by this node.
Dependencies
- No external services or API keys are required.
- This node operates purely on the input data within the workflow.
Troubleshooting
Common issues:
- If the input data is empty or not properly formatted, the node will still run but output items will only have the
myStringfield set. - Errors during execution will be thrown unless the node is configured to continue on failure.
- If the input data is empty or not properly formatted, the node will still run but output items will only have the
Error messages:
- Errors related to invalid input data or parameter retrieval will include the index of the failing item.
- To resolve errors, ensure that the input data is valid and that the "My String" property is correctly set.