- 0 minutes to read

Formula - touppercase

touppercase( ) Formula function is convert the letter/text to upper case.

Quick example

Let's get you started with the following example: For other, and more advanced examples please scroll down on this page to the Examples section.

Input Expression Result

  nodinite


touppercase(body)

NODINITE
Text Data touppercase expression Unique values

Syntax

On the Message Body :

touppercase(body)

On the Message Context :

touppercase(context('MessageContextKey'))

Features

  • Convert the return text from Content to UpperCase.
  • Can be applied to any valid Content that return text; Like jsonpath, xpath functions, review Formula user guide for the complete list of functions.

Important

This plugin loads the entire message into RAM, so make sure to apply this function only on small messages.

How to use

To use the touppercase function, the Content parameter should contain a text (otherwise it will fail and you will end up with nothing). But first and foremost we have to configure the Formula plugin:

  • Select Formula as the expression type plugin.
  • Write down the expression to use in the 'Expression' text area.
  • Input proper Content as a parameter to the function.

Syntax

Use the base64decode function with any of the following parameters:

  • From Message Body: touppercase(body)

  • From Message Context: touppercase(context('MessageContextKey'))

  • Result from previous Formula operation touppercase(SomeOtherNestedFormulaFunction(Content))

Nested


Examples

Below you will find different common examples of how to use the touppercase function.

Body as Content

"gmt" is the body content, by using the provided expression, the result is GMT.

e.g. touppercase(body)

Simple touppercase test

Message Body


gmt

Expression


touppercase(body)


Context as Content

"gmt" is the Message Context value and the key is "id", by using the provided expression, the result is GMT.

e.g. touppercase(context('id'))

Simple touppercase test

Message Context Value

gmt

Expression

touppercase(context('id'))

Formula Function as Content

The body is normal text,thereby, regex function could be used as a Content parameter, by using the provided expression, the result is GMT,UTC.

e.g. touppercase(regex('gmt|utc',body))
touppercase With Regex

Message Body


gmt utc

Expression


touppercase(regex('gmt|utc',body))


Next Step

How to Add or manage Search Fields
How to Add or manage Log Views

Expression Type Plugins are used in Search Fields
What are Search Fields?
What are Search Field Expressions?
What are Message Types?
What are Log Views?