Formula - touppercase

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

Quick example

Let's get you started with the following simple demonstration example valid for this Formula plugin. 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 on any valid Content that return text; Like jsonpath, xpath functions, review Formula user guide for complete list of functions.

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

How to use

In order 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 expression type plugin.
  • Write down the expression to use in the 'Expression' text area.
  • Input a proper Content as 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))


Examples

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

Body as Content

"gmt" is the body content, by using the provided expression the result will be 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 will be 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 will be GMT,UTC.

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

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?