Skip to content
Documentation
Updated 3 minutes to read
Markdown

The concat Formula function returns all its arguments joined, in order, into one string.

Join static text, then the order id and customer name of an Order-to-Cash event with concat, animated walkthrough (7.12)
Animated walkthrough: concat('formula','Plugin') returns formulaPlugin, with no separator. On the JSON Order Received event of order ORD-10005 in the Order-to-Cash demo, concat(jsonPath('$.orderId', body), ' / ', jsonPath('$.customer.name', body)) joins two jsonPath results with a separator into ORD-10005 / Tailspin Toys.

concat(content, ..., content)
Parameter Required Description
content Yes, two or more The parts to join: static text in single quotes, body, context, or the result of another function, such as jsonPath or substring.

One string with the arguments joined in the order you list them, with no separator. To add a separator, pass it as static text: concat(body, '-', context('id')).

That holds when every argument has one value. When an argument returns several values, concat returns one string per value, each joined with the other arguments. On {"orderId":"ORD-10005","lines":[{"sku":"A"},{"sku":"B"}]}, concat(jsonPath('orderId', body), ' / ', jsonPath('lines[*].sku', body)) returns two values, ORD-10005 / A and ORD-10005 / B, and concat(jsonPath('lines[*].sku', body), '|') returns A| and B|.

None; the formula uses only static text.

concat('formula','Plugin')
formulaPlugin

Test Expression tab: concat('formula','Plugin') returns formulaPlugin (7.12)
Static text works without a message body; case is kept as written.

Example 2: Append static text to the message body

Section titled “Example 2: Append static text to the message body”
Nod
concat(body,'inite')
Nodinite

Test Expression tab: concat(body,'inite') returns Nodinite for the message body Nod (7.12)
The body comes first because it's the first argument.

Hey
concat(body,body)
HeyHey

Test Expression tab: concat(body,body) returns HeyHey for the message body Hey (7.12)
The same source can be used more than once.

Example 4: Prepend static text to a context property

Section titled “Example 4: Prepend static text to a context property”
Key Value
id ination
concat('Imag',context('id'))
Imagination

Test Expression tab: concat('Imag',context('id')) returns Imagination for the context value ination (7.12)
Static text and the value of the context property id are joined.

Example 5: Join the result of jsonPath and static text

Section titled “Example 5: Join the result of jsonPath and static text”
Key Value
id { "Id": 2 }
concat(jsonPath('Id',context('id')),'A')
2A

Test Expression tab: concat of jsonPath on a JSON context value and 'A' returns 2A (7.12)
jsonPath reads Id from the JSON in the context property, and concat appends A.

Message body:

gmt

Message context:

Key Value
id utc
concat(toUpperCase(regex('gmt|utc', body)), toUpperCase(substring(0,3, context('id'))))
GMTUTC

Test Expression tab: concat of toUpperCase(regex) on the body and toUpperCase(substring) on the context returns GMTUTC (7.12)
The first argument uppercases the regex match in the body; the second uppercases the first three characters of the context value.

Message Context tab with the key id and the value utc (7.12)
The context property id used by the second argument in Example 6.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...