Skip to main content

toUpperCase

Description

Converts all alphabetical characters in a string to uppercase.

Syntax

Like many functions in DataPrime, toUpperCase supports two notations, function and method. These interchangeable forms allow flexibility in how you structure expressions.

toUpperCase(value: string): string

Arguments

NameTypeRequiredDescription
valuestringtrueThe string to transform to uppercase

Example

Normalize UUIDs for comparison

A direct comparison would fail due to differing cases. Use toUpperCase to normalize them:

Example data

{
"uuid1": "37367559-35f4-459c-943e-19025765da15",
"uuid2": "37367559-35F4-459C-943E-19025765DA15"
}

Example query

filter toUpperCase(uuid1) == toUpperCase(uuid2)

Example output

{
"uuid1": "37367559-35f4-459c-943e-19025765da15",
"uuid2": "37367559-35F4-459C-943E-19025765DA15"
}
Was this page helpful?