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

Animated walkthrough: on the JSON Order Received event of order ORD-10005 in the Order-to-Cash demo, toLowerCase(jsonPath('$.customer.name', body)) returns tailspin toys. Nested in equal, equal('tailspin toys', toLowerCase(jsonPath('$.customer.name', body))) returns true, whatever case the system logged.
Syntax
Section titled “ Syntax”toLowerCase(content)Parameters
Section titled “Parameters”| Parameter | Required | Description |
|---|---|---|
content |
Yes | The text to convert: body, context, or the result of another function, such as jsonPath. |
Returns
Section titled “Returns”The content in lowercase. 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: Lowercase the message body
Section titled “Example 1: Lowercase the message body”JAVAFormula
Section titled “Formula”toLowerCase(body)Result
Section titled “Result”java
The whole message body is returned in lowercase.
Example 2: Lowercase a context property
Section titled “Example 2: Lowercase a context property”| Key | Value |
|---|---|
id |
JAVASCRIPT |
Formula
Section titled “Formula”toLowerCase(context('id'))Result
Section titled “Result”javascript
The value of the context property id is converted; the message body isn't used.
Example 3: Lowercase several values from a JSON body
Section titled “Example 3: Lowercase several values from a JSON body”[ { "name" :"HELLO"}, {"name" :"WORLD"}]Formula
Section titled “Formula”toLowerCase(jsonPath('$..name',body))Result
Section titled “Result”helloworld
jsonPath returns two values, and toLowerCase converts each one: two unique matches.
- Use
toLowerCasefor case normalization: when systems log the same value in different cases, such asNorthandNORTH,toLowerCase(context('Region'))stores one spelling,north. toUpperCase does the same in uppercase. - To compare without caring about case, lowercase the content first:
equal('tailspin toys', toLowerCase(jsonPath('$.customer.name', body))). equal itself is case-sensitive. toLowerCasefollows the culture rules of the server, like toUpperCase.