Item Property Replace
Configuration reference for the Item Property Replace Pipes valve and its supported options.
Valve that replaces the value, or part of the value, of an item property.
Replacement can be performed using tokens (substrings) or regular expressions.
If no token or regex is provided, the entire value will be replaced.
Valve can also create a new property containing the result of the replacement.
If a property contains multiple values, each value will be processed individually.
Configuration
Section titled “Configuration”| Name | Description | Default | Mandatory | Expanded |
|---|---|---|---|---|
src | Name of property to replace | |||
dest | Destination property of result. When supplied, src will not be modified. | |||
token | Token (substring) in src to replace. Can match/replace one or more parts of the value. | |||
regex | Regex matching part of src to replace. Can match/replace one or more parts of the value. | |||
replacement | Replacement value. If not specified, no replacement vill be performed. Note: empty string ("") is a valid replacement. |
{ "name": "ItemPropertyReplace", "config": { "item_include_expr": "item.id === 'result'", "src": "mail", "token": "@example.com", "replacement": "@test.org" }}