Formula - toUpperCase
Section titled “ Formula - toUpperCase”The toUpperCase Formula function returns the content with every letter in uppercase.

Animated walkthrough: on the Order Received JSON of the Order-to-Cash demo, toUpperCase(jsonPath('$.customer.name', body)) returns TAILSPIN TOYS. The second half shows startsWith on the order id.
Syntax
Section titled “ Syntax”toUpperCase(content)Parameters
Section titled “Parameters”| Parameter | Required | Description |
|---|---|---|
content |
Yes | The text to convert: body, context, or the result of another function, such as regex. |
Returns
Section titled “Returns”The content in uppercase. When the content holds several values, each value is converted and returned as its own Search Field value. When the content has no value, nothing is returned.
Examples
Section titled “ Examples”Example 1: Uppercase the message body
Section titled “Example 1: Uppercase the message body”gmtFormula
Section titled “Formula”toUpperCase(body)Result
Section titled “Result”GMT
The whole message body is returned in uppercase.
Example 2: Uppercase a context property
Section titled “Example 2: Uppercase a context property”| Key | Value |
|---|---|
id |
gmt |
Formula
Section titled “Formula”toUpperCase(context('id'))Result
Section titled “Result”GMT
The value of the context property id is converted; the message body isn't used.
Example 3: Uppercase several regex matches
Section titled “Example 3: Uppercase several regex matches”gmt utcFormula
Section titled “Formula”toUpperCase(regex('gmt|utc',body))Result
Section titled “Result”GMTUTC
regex returns two matches, and toUpperCase converts each one: two unique matches.
- Use
toUpperCasefor case normalization: when systems log the same code in different cases, such assekandSEK,toUpperCase(context('Currency'))stores one spelling,SEK. toLowerCase does the same in lowercase. - Letters are converted by the culture rules of the server that runs the Logging Service. This matters only for a few letters, such as the Turkish dotted and dotless i.