Custom Credentials

Custom node to add Custom Credentials

Overview

This custom n8n node is designed to add or modify a string property in the JSON data of each input item. Specifically, it takes an input string from the user and sets this string as the value of a field named myString in the JSON part of every incoming item. This node is useful when you want to inject or overwrite a specific string value across multiple data items in a workflow.

Practical examples:

  • Adding a constant tag or label to all items passing through the node.
  • Overwriting or setting a specific configuration string for downstream nodes.
  • Injecting a placeholder or default value into each item’s JSON data.

Properties

Name Meaning
My String The string value to set on each item's JSON under the key myString.

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 updated property:

{
  "myString": "<value provided in the node's 'My String' property>",
  ... // other original JSON properties remain unchanged
}

No binary data 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

  • Common issue: If the node fails on a particular item, it will throw an error unless "Continue On Fail" is enabled.
  • Error messages: Errors typically relate to invalid input data or unexpected runtime exceptions. Enabling "Continue On Fail" allows the workflow to continue processing other items while capturing errors per item.
  • Ensure that the input data is valid JSON objects; otherwise, the node may fail when trying to assign the new property.

Links and References

Discussion