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
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| … field_names | String | Yes | One 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.