Transforms
Create Key
Creates a new key-value pair if the target key-value exists in the record.
Example
This example shows how to use the CreateKeyValueIfKeyValue transformation to add a new key-value pair to a record if another key-value pair exists.
Code
Given the input record:
Code
The output record will be:
Code
If the input record does not contain the key_to_watch with the specified value_to_watch, no changes will be made to the record.
Last modified on