TRIGGER_IS_CHANGED

Description

Returns TRUE if any of the specified fields have been modified from their previous values during the update DML operation; otherwise, returns FALSE.

Syntax

TRIGGER_IS_CHANGED(...field_names) -> Boolean

Parameters

ParameterData TypeRequiredDescription
… field_namesStringYesOne or more field API names to evaluate. Each field is compared between the current and previous versions of the record.

Example

TRIGGER_IS_CHANGED("Priority", "Status")
-- Returns TRUE if Priority or Status has changed, otherwise FALSE.