Body Mapper

Add or edit fields on an input item and optionally remove other fields

Overview

The Body Mapper node allows users to add or edit fields on an input item and optionally remove other fields. It is useful for transforming data by modifying the structure of input items, such as adding new properties, updating existing ones, or cleaning up unwanted fields before passing the data to subsequent nodes in a workflow.

Use Case Examples

  1. Adding a timestamp field to each input item for tracking purposes.
  2. Renaming or modifying existing fields to match the requirements of another system.
  3. Removing sensitive or unnecessary fields from data before further processing or storage.

Output

JSON

  • modifiedItem - The input item after fields have been added, edited, or removed according to the node's configuration

Dependencies

  • This node depends on the Setter submodule which handles the actual logic of setting and removing fields on the input items.

Troubleshooting

  • If fields are not being added or modified as expected, verify the configuration of the Setter submodule within the node.
  • Ensure that the input data structure matches the expected format for the fields to be mapped or removed.
  • Common errors may include misconfiguration of field names or types, which can be resolved by reviewing the node's field mapping settings.

Discussion