Skip to main content

String Functions

Functions for manipulating and working with text values.

Concatenate

Joins multiple strings together into a single string.

PropertyValue
CategoryString
Min Arguments2
Returnsstring

Arguments:

#NameTypeDescription
0Base Stringstring, boolean, datetime, decimal, float, integer, moneyThe first value to concatenate
1+String To Concatenatestring, boolean, datetime, decimal, float, integer, moneyAdditional values to join

Description: Joins two or more values together into a single string. Non-string values are automatically converted to their string representation.

Example:

Concatenate("Hello", " ", "World") → "Hello World"
Concatenate("Order #", 12345) → "Order #12345"
Concatenate(FirstName, " ", LastName) → "John Smith"

Format

Replaces index-based placeholders with values.

PropertyValue
CategoryString
Min Arguments2
Returnsstring

Arguments:

#NameTypeDescription
0String To FormatstringTemplate string with placeholders (0, 1, etc.)
1+Replacement Stringstring, boolean, datetime, decimal, float, integer, moneyValues to substitute for placeholders

Description: Replaces {0}, {1}, {2}, etc. in the template string with the corresponding argument values.

Example:

Format("Hello, {0}!", "John") → "Hello, John!"
Format("Order {0} total: {1}", "ORD-123", "$500.00") → "Order ORD-123 total: $500.00"
Format("{0} of {1} items completed", 5, 10) → "5 of 10 items completed"

Replace

Replaces occurrences of a substring with another string.

PropertyValue
CategoryString
Min Arguments3
Returnsstring

Arguments:

#NameTypeDescription
0Base StringstringThe original string
1Old SubstringstringThe substring to find and replace
2New SubstringstringThe replacement string

Description: Finds all occurrences of the old substring in the base string and replaces them with the new substring.

Example:

Replace("Hello World", "World", "FlowOn") → "Hello FlowOn"
Replace("2023-01-15", "-", "/") → "2023/01/15"
Replace("Mr. John Smith", "Mr.", "Dr.") → "Dr. John Smith"

Substring

Extracts a portion of a string starting from a specified index.

PropertyValue
CategoryString
Min Arguments2
Returnsstring

Arguments:

#NameTypeDescription
0Base StringstringThe original string
1Index ArgumentintegerStarting position (0-based)

Description: Returns the portion of the string from the starting index to the end.

Example:

Substring("Hello World", 6) → "World"
Substring("ORDER-12345", 6) → "12345"
Substring("john.doe@email.com", 9) → "email.com"

To Lower Case

Converts a string to lowercase.

PropertyValue
CategoryString
Min Arguments1
Returnsstring

Arguments:

#NameTypeDescription
0Base StringstringThe string to convert

Example:

To Lower Case("HELLO WORLD") → "hello world"
To Lower Case("John.DOE@Email.COM") → "john.doe@email.com"

To Upper Case

Converts a string to uppercase.

PropertyValue
CategoryString
Min Arguments1
Returnsstring

Arguments:

#NameTypeDescription
0Base StringstringThe string to convert

Example:

To Upper Case("hello world") → "HELLO WORLD"
To Upper Case("ProductCode") → "PRODUCTCODE"

Trim

Removes leading and trailing whitespace from a string.

PropertyValue
CategoryString
Min Arguments1
Returnsstring

Arguments:

#NameTypeDescription
0Base StringstringThe string to trim

Example:

Trim("  Hello World  ") → "Hello World"
Trim(" John ") → "John"

Index Of

Returns the position of the first occurrence of a substring.

PropertyValue
CategoryString
Min Arguments2
Returnsinteger

Arguments:

#NameTypeDescription
0Base StringstringThe string to search in
1Index ArgumentstringThe substring to find

Description: Returns the 0-based index of the first occurrence. Returns -1 if not found.

Example:

Index Of("Hello World", "World") → 6
Index Of("john@email.com", "@") → 4
Index Of("Hello", "xyz") → -1

Last Index Of

Returns the position of the last occurrence of a substring.

PropertyValue
CategoryString
Min Arguments2
Returnsinteger

Arguments:

#NameTypeDescription
0Base StringstringThe string to search in
1Last Index ArgumentstringThe substring to find

Description: Returns the 0-based index of the last occurrence. Returns -1 if not found.

Example:

Last Index Of("one.two.three", ".") → 7
Last Index Of("folder/subfolder/file.txt", "/") → 16

String Length

Returns the number of characters in a string.

PropertyValue
CategoryString
Min Arguments1
Returnsinteger

Arguments:

#NameTypeDescription
0Base StringstringThe string to measure

Example:

String Length("Hello") → 5
String Length("Hello World") → 11
String Length("") → 0

Match Pattern

Tests if a string matches a regular expression pattern.

PropertyValue
CategoryString
Min Arguments2
Returnsboolean

Arguments:

#NameTypeDescription
0Base StringstringThe text to validate
1PatternstringRegular expression pattern

Description: Evaluates whether the text matches the specified regex pattern. Returns true if it matches, false otherwise.

Example:

Match Pattern("john@email.com", "^[^@]+@[^@]+\.[^@]+$") → true
Match Pattern("12345", "^\d{5}$") → true
Match Pattern("ABC123", "^[A-Z]+$") → false

To String

Converts a value to its string representation with formatting.

PropertyValue
CategoryString
Min Arguments2
Returnsstring

Arguments:

#NameTypeDescription
0Base Inputdatetime, decimal, entityReference, float, integer, moneyValue to convert
1PatternoptionSetFormat pattern

Format Patterns for Numbers:

PatternLabelExample
PPercent0.15"15%"
E2Exponential1500"1.50E+003"
CCurrency1500"$1,500.00"
F2Two Decimals3.14159"3.14"
NDigits1500"1,500"

Format Patterns for DateTime:

PatternLabelExample Output
dShort"1/15/2026"
DLong"Thursday, January 15, 2026"
tShort Time"2:30 PM"
TLong Time"2:30:00 PM"
yyyy-MM-ddISO Date"2026-01-15"
dd/MM/yyyyEuropean Date"15/01/2026"
MM/dd/yyyy hh:mm ttUS DateTime"01/15/2026 02:30 PM"
MMM dd, yyyyLong Format Date"Jan 15, 2026"

Configuration Value

Retrieves a cached configuration value.

PropertyValue
CategoryString
Min Arguments1
Returnsstring

Arguments:

#NameTypeDescription
0Name of Configuration ValuestringThe configuration variable name

Description: Returns the value of a global configuration variable. See the Configuration construct for more details.

Example:

Configuration Value("ApprovalThreshold") → "$10,000"
Configuration Value("DefaultTaxRate") → "0.08"

Localized Resource

Retrieves a localized string value.

PropertyValue
CategoryString
Min Arguments1
Returnsstring

Arguments:

#NameTypeDescription
0Resource NamestringThe localized resource key
1LanguageoptionSet (optional)Specific language (default: user's language)

Description: Returns the localized string for the current user's language. See the Localized Resource construct for more details.

Example:

Localized Resource("RequiredField") → "This field is required" (in user's language)
Localized Resource("WelcomeMessage", "Spanish") → "¡Bienvenido!"