Overview
This node, named "Example Node," is a basic transformation tool designed to add or overwrite a string property in each input item’s JSON data. It processes incoming data items and sets the value of a specified string field ("My String") on each item. This node is useful when you want to inject or modify a simple text value across multiple data entries within an n8n workflow.
Practical examples:
- Adding a constant label or tag to all records before sending them to another system.
- Overwriting or setting a descriptive field in data items for further processing or filtering.
- Quickly testing workflows by injecting a placeholder string into data.
Properties
| Name | Meaning |
|---|---|
| My String | The description text; a string value to set on each item's myString field. Placeholder shown as "Placeholder value". |
Output
The node outputs the same number of items as it receives, with each item’s JSON data augmented by a new or updated property named myString. The value of this property corresponds to the input provided via the "My String" parameter.
Output structure example:
{
"json": {
"myString": "value set by user",
// ... other original properties
}
}
No binary data output is produced by this node.
Dependencies
- No external services or API keys are required.
- The node operates purely on the input data within the workflow.
Troubleshooting
Common issues:
- If the input data is empty or not structured as expected, the node will simply pass through the data without modification.
- Errors during execution typically relate to invalid input types or unexpected data structures.
Error messages:
- If an error occurs on a specific item, and the node is configured to continue on failure, the error details will be attached to that item’s output under an
errorproperty. - Otherwise, the node throws an error indicating the item index where the failure happened.
- If an error occurs on a specific item, and the node is configured to continue on failure, the error details will be attached to that item’s output under an
To resolve errors:
- Ensure the input data is valid JSON objects.
- Verify that the "My String" property is correctly set and is a string.