FormulaReturnType Enum

Specifies the return type for the withReturnType(returnType) method.

The following are the values of the FormulaEval.FormulaReturnType enum.

ValueDescription
BOOLEANA value that can only be assigned true, false, or null.
DATEA value that indicates a particular day.
DATETIMEA value that indicates a particular day and time, such as a timestamp.
DECIMALA number that includes a decimal point. Decimal is an arbitrary precision number.
DOUBLEA 64-bit number that includes a decimal point.
IDAny valid 18-character Lightning Platform record identifier.
INTEGERA 32-bit number that doesn’t include a decimal point.
LONGA 64-bit number that doesn’t include a decimal point.
STRINGAny set of characters surrounded by single quotes.
TIMEA value that indicates a particular time.