REPLACE VALUES

Replaces the values in an existing key-value pair with a new set of comma-separated values. The number of replacement values must match the number of rows in the input key-value object. Use this worker to update key-value payloads without changing their keys.

When to use

Classification: process.

Tagged: keyvalue, mapping, replace, transform, values.

Inputs

Label ID Type Default Required Description
Kv1 kv1 keyvalue   Input key-value pair whose values will be replaced; the keys are preserved and only the values are overwritten.
Values values textarea   Comma-separated list of replacement values; the number of items must exactly match the number of rows in the kv1 key-value input.

Outputs

Label ID Type Description
keyvalue_replace_output keyvalue_replace_output keyvalue Updated key-value pair containing the original keys from kv1 mapped to the new replacement values supplied via the values input.

Disciplines

  • data.dataset.transform

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=keyvalue_replace_values


Auto-generated from transformation schema. Worker id: keyvalue_replace_values. Schema hash: 1b9765664dd8. Hand-curated docs in workerexamples/ override this page when present.