The variable replacement mapping defines variables in the value replacement to be replaced with multiple fields of a message. The variables to be replaced should be contained in square brackets and their definition should be the message field name. To use the variable replacement set the mapping function to "variable replacement". The attributes that need to be set in a variable replacement mapping are:

Attribute

Required

Description

from

Y

Defines the field name before mapping.

to

Y

Defines the field name after mapping.

precedence

N

Defines the precedence used when mapping.

Function typeYDefines the Function type of the mapping. Needs to be "String functions"

Function

Y

Defines the type of mapping. Needs to be "variable replacement".

Replacement string

Y

Defines the variable replacement.

In the example below, we merge multiple fields of a message into one string with the field name "slack". The message fields get populated in the replacewith string and the string gets inserted in the message field "slack".

Image 1. Variable replacement mapping that joins multiple fields into a Slack message.