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. 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 each record before further processing.
  • Injecting a placeholder or default string into data items for testing or debugging.
  • Overwriting or setting a specific field with a user-defined string value.

Properties

Name Meaning
My String The description text; a string value to 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 called myString, which holds the string value provided by the user in the node's input parameter.

No binary data is produced by this node.

Dependencies

  • No external services or API keys are required.
  • This node depends only on the n8n core framework.

Troubleshooting

  • Common issues:

    • If the input data is empty or not properly formatted, the node will simply pass through the data without modification.
    • Errors during execution typically relate to invalid input parameters 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 under an error property.
    • Otherwise, the node throws an error indicating the item index where the failure happened.

Links and References

Discussion