Example icon

Example

Basic Example Node

Example

AI-generated

Overview

This node is a basic example node designed to demonstrate simple string input handling within an n8n workflow. It takes an input data array, reads a user-provided string parameter for each item, and appends this string to the JSON data of each input item. This node is useful for scenarios where you want to add or modify data in each item passing through the workflow with a static or dynamic string value.

Use Case Examples

  1. Appending a user-defined note or tag to each item in a data processing workflow.
  2. Adding a custom string identifier to each record before sending it to another system.

Properties

Name Meaning
My String A user-defined string that will be added to each input item's JSON data under the key 'myString'.

Output

JSON

  • myString - The string value provided by the user, added to each item's JSON data.

Troubleshooting

  • If the node throws an error related to parameter retrieval, ensure that the 'My String' parameter is correctly set and accessible.
  • Errors during execution may occur if input data is missing or malformed; verify that input items are properly formatted JSON objects.
  • If 'Continue On Fail' is enabled, errors for individual items will be captured in the output with an 'error' property; otherwise, the node will stop execution on the first error.

Discussion