Overview
This node is a basic example node designed to demonstrate simple input and output handling in n8n workflows. It takes an input string property from the user, processes each input item by adding this string to the item's JSON data, and outputs the modified items. This node is useful for learning how to create custom nodes or for simple string manipulation tasks within a workflow.
Use Case Examples
- A user inputs a string 'Hello World' into the node's 'My String' property. The node then adds this string to each incoming data item under the 'myString' key in the JSON output, allowing subsequent nodes to use or transform this data.
- It can be used to tag or label incoming data items with a custom string for identification or processing in later workflow steps.
Properties
| Name | Meaning |
|---|---|
| My String | A user-defined string that is added to each input item's JSON data under the key 'myString'. |
Output
JSON
myString- The string value provided by the user, added to each input item's JSON data.
Troubleshooting
- If the node encounters an error processing an item, it will either continue processing other items if 'Continue On Fail' is enabled, or it will throw an error with context about the item index.
- Common errors might include invalid input data types or missing parameters, which can be resolved by ensuring the input data is correctly formatted and the 'My String' property is set.