Set value in YAML
AI-generatedSummary
Set or update one or multiple field values inside a YAML structure contained in an input item, supporting both string and binary YAML input formats.
Inputs
- Input Yaml Field (required) — The property name in the input item that contains the YAML data to modify. Can be a JSON string representation or a binary field.
- Fields to Set (required) — An array of fields to set or update inside the YAML data. Each field requires a dot-notation path (e.g., data.person[0].name), a data type (String, Number, Boolean, Array, Object), and the value to assign.
- Input Type (required) — The format of the input YAML data: 'binary', 'string', or 'auto' for automatic detection.
- Binary Options — If the input is binary, specify encoding (default UTF-8), whether to strip BOM, and how to preserve source data.
- Set Options — Options to modify the setting behavior, e.g., ignoring type conversion errors.
Output shape
A list of one or more items where each item's YAML data property has the specified fields set or updated.
The operation processes each input item individually. For string input, the YAML is returned as a string in the same property; for binary input, the YAML is converted back to binary data. If errors occur, they are either thrown or included as error messages in output items if 'Continue On Fail' is enabled.