Formula - tolowercase

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

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 


tolowercase(body)

nodinite
Text Data tolowercase expression Unique values

Features

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

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

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

Examples

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

Body as Content

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

e.g. tolowercase(body)

tolowercase_BodyAsContent

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 will be 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 will be Co ,ol.

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

tlowercase_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?