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 for this node include:
- Adding a static label or tag to all items passing through a workflow.
- Injecting a constant string value into data for further processing or filtering downstream.
- Testing or debugging workflows by appending known values to data items.
For example, if you want to mark all records with a status like "Processed" or add a note "Checked by QA", this node can be used to set that string uniformly.
Properties
| Name | Meaning |
|---|---|
| My String | The description text; any string value to assign to the myString field in each item's JSON data. |
Output
The node outputs the same number of items as it receives. Each output item contains the original JSON data with an added or updated property:
{
"myString": "<value provided in the node parameter>"
}
No binary data is produced by this node.
Dependencies
- No external services or API keys are required.
- This node only depends on n8n's core runtime environment.
Troubleshooting
- Error Handling: If an error occurs while setting the property on an item, the node either continues processing remaining items (if configured to continue on failure) or throws an error indicating which item caused the problem.
- Common Issues:
- Providing invalid input types is unlikely since the property expects a string.
- Ensure that the input data is valid JSON objects; otherwise, the node may fail when trying to assign the property.
- Error Messages:
- Errors will indicate the index of the item causing the issue.
- To resolve errors, verify input data integrity and ensure the "My String" property is correctly set.