TRIGGER_OLD_VALUE

Description

Returns the previous value of the specified field in an Update DML operation.

Syntax

TRIGGER_OLD_VALUE(field_name) -> Object

Parameters

ParameterData TypeRequiredDescription
field_nameStringYesThe API name of the field.

Example

TRIGGER_OLD_VALUE("Priority")
-- Returns the previous value of Priority in an update operation.