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 and sets it as the value of the myString field 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 default string property before passing data to subsequent nodes.
- Testing workflows by injecting sample string values into data items.
Properties
| Name | Meaning |
|---|---|
| My String | The description text; a string value to set on each item's myString field. |
Output
The node outputs the same number of items as it receives, with each item’s JSON data modified to include or update the myString property with the provided string value.
Output structure example for one item:
{
"json": {
"myString": "value set by user"
// ... other original properties remain unchanged
}
}
No binary data output is produced by this node.
Dependencies
- No external services or API keys are required.
- The node relies solely on n8n's internal methods for parameter retrieval and error handling.
Troubleshooting
Common issues:
- If the input data is empty or missing, the node will simply return an empty array without modification.
- Providing non-string values (e.g., numbers) for the "My String" property is not possible due to type enforcement but if forced via expressions, it will be converted to string implicitly.
Error messages:
- Errors during execution will be wrapped and reported with the item index for easier debugging.
- If "Continue On Fail" is enabled, errors on individual items will not stop the entire execution; instead, error details will be appended to the output for those items.