- 2 minutes to read

Formula - tolowercase

tolowercase( ) Formula function Straightforward function used to convert letters/text to lowercase.

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 


tolowercase(body)

nodinite
Text Data tolowercase expression Unique values

Features

  • Convert the return text from Content to LowerCase.
  • 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 tolowercase 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: tolowercase(body)

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

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

Examples

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

Body as Content

"JAVA" is the body content, by using the provided expression, the result is java.

e.g. tolowercase(body)

tolowercase Body As Content

Message Body


 JAVA

Expression


java


Context as Content

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

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

tolowercase_ContextAsContetn

Message Context Value


JAVASCRIPT

Expression


tolowercase(context('id'))



Formula Function as Content

Body content is JSON array and the Content parameter is jsonpath function, by using the provided expression, the result is Co, ol.

e.g. tolowercase(jsonpath('$..name',body))

lowercase_FormulaFunctionAsContent

Message Body


[	
	 { "name" :"HELLO"},
	 { "name" :"WORLD"}
]

Expression


tolowercase(jsonpath('$..name',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?