Using Functions

You can use a function from the list of functions available under Functions in the mapper. Input parameters to the function can either be mapped from an element under Upstream Output, a literal value, or an expression that evaluates to the appropriate data type or any combination of them.

The procedure below illustrates an example that concatenates two strings and assigns the concatenated value to message. We manually enter a value for the first string (str1) and map the second string to FirstName under body. The value for FirstName comes from the flow input.

Procedure

  1. Click message to open the mapper to the right.
  2. Expand the string function group in the right column and click concat(str1, str2).

  3. Select str1 in the function and type "We have received a message from " (be sure to include the double quotes as shown below) to replace str1 with it.

  4. Select str2 and click FirstName under body.

    At runtime, the output from the concat function gets mapped to message.

Related concepts