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 sets this string as the value of the myString field on every incoming data item.
Common scenarios where this node is useful include:
- Adding a constant or user-defined tag or label to all items passing through a workflow.
- Overwriting or setting a specific string property uniformly across multiple data items.
- Simple data enrichment or annotation before further processing.
For example, if you want to mark all incoming records with a status like "processed" or add a note, you can use this node to set that string on each item.
Properties
| Name | Meaning |
|---|---|
| My String | The string value to assign to the myString field on each input item. This can be any text the user wants to set. |
Output
The node outputs the same number of items as it receives as input. Each output item contains the original JSON data plus a new or updated field:
json.myString: Set to the string provided by the user in the "My String" property.
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
- Empty or missing input: If no input data is provided, the node will output an empty array.
- Errors during execution: If an error occurs while setting the property on an item, and the node is configured to continue on failure, the error details will be attached to the output item under an
errorfield. - Invalid property value: Since the property expects a string, providing non-string values (via expressions) might cause unexpected results or errors.