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. This node is useful for simple data enrichment or tagging scenarios where you want to append a fixed string value to all items passing through the workflow.
Practical examples:
- Adding a constant label or tag to all records before sending them to another system.
- Injecting a placeholder or default value into data items for downstream processing.
- Testing workflows by adding a known string to verify data flow.
Properties
| Name | Meaning |
|---|---|
| My String | The description text. A string value that will be set on each item's myString field. |
Output
The output consists of the same number of items as the input. Each output item contains the original JSON data with an added or overwritten property:
{
"myString": "value set by the node"
}
No binary data is produced by this node.
Dependencies
- No external services or API keys are required.
- This node relies solely on n8n's internal framework and standard input/output handling.
Troubleshooting
Common issues:
- If the input data is empty or not properly formatted, the node will still run but simply add the string to whatever JSON exists.
- Errors during execution will either stop the workflow or, if "Continue On Fail" is enabled, will append error information to the output.
Error messages:
- Errors thrown during parameter retrieval or data processing will include the item index for easier debugging.
- To resolve errors, ensure that the input data is valid JSON and that the "My String" property is correctly set.