Reference > Expressions > Built-in Functions > String Functions > Substring

Substring

Returns a string containing a substring of consecutive characters from another string.

Syntax

Substring(text,startPosition,length)

Enabled for

Search/Dashboard No
Business Rules Yes
Quick Actions Yes
Workflow Objects Yes
Reports No

Parameters

text

The text from which to extract the substring.

startPosition

The position of the first character to include in the output. The first character starts with position 1.

length

(Optional) The length of the substring.

Return Value

Text value.

Example

$(Substring(Symptom, 21, 7))

If the Symptom field in the current business object contains the following:

Printer seems to be working fine for others. His setup for the printer is fine.

It returns the substring starting with the 21st character and continues for 7 characters. The result of this function in this example is working.

See also Substring0().