Overview
This node, named "Example Node," is a basic transformation node designed to add or overwrite a string property in each input item’s JSON data. It takes an input string from the user and assigns it to a field called myString on every incoming data item. This node is useful when you want to inject or modify a specific string value across multiple items in a workflow.
Practical examples:
- Adding a constant tag or label to all incoming data items.
- Overwriting or setting a specific string field before passing data to another node.
- Testing or debugging workflows by inserting known values into the data stream.
Properties
| Name | Meaning |
|---|---|
| My String | The description text; a string value to assign to the myString field of each input item. |
Output
The output consists of the same array of items as the input, but with each item's JSON data modified to include or overwrite the myString property with the user-provided string value.
- json: Each item will have a
myStringfield set to the input 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
- Error handling: If an error occurs while processing an item (e.g., invalid parameter), the node can either stop execution or continue depending on the "Continue On Fail" setting.
- Common errors might relate to invalid input types or missing parameters, which can be resolved by ensuring the "My String" property is properly set.
- If the node throws an error referencing item indices, check the input data integrity and parameter configuration.