Example Node

Basic Example Node

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 or user-defined string to all items passing through a workflow.
  • Overwriting or setting a specific field with a constant value for downstream processing.
  • Simple data enrichment where a fixed label or note needs to be attached to each item.

For example, if you want to tag all incoming data items with a status like "Processed" or a category name, you can use this node to set that string uniformly.

Properties

Name Meaning
My String The 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, but each item’s JSON data will have a new or updated property called myString containing the string provided by the user.

Output structure example (for one item):

{
  "json": {
    "myString": "User provided string"
    // ... other original properties remain unchanged
  }
}

No binary data output is produced by this node.

Dependencies

  • No external services or API keys are required.
  • This node operates purely on the input data within the workflow.

Troubleshooting

  • Empty or missing myString value: If the input string is empty, the node will still set the myString property to an empty string, which might not be intended. Ensure to provide a meaningful string.
  • Errors during execution: If an error occurs while processing an item, and the node is configured to continue on failure, the error details will be added to the output alongside the item. Otherwise, the node will throw an error indicating the item index where the failure happened.
  • Incorrect property name: Make sure the property name used in subsequent nodes matches myString exactly, including case sensitivity.

Links and References

Discussion