# IF_Trigger.AfterUpdate

**Class** · Group: `Triggers`

Learn it: [Fast Start - Trigger Actions](/fast-start-trigger-actions) and [Triggers guide](/triggers-guide)

<div class="apex-member apex-class">

```apex
global interface IF_Trigger.AfterUpdate
```

**Known Derived Types:** [TRG_ExecuteValidationRules](/reference/apex/trg-executevalidationrules), [TRG_ExecuteValidationRules.afterUpdate(List<SObject>,List<SObject>)](/reference/apex/trg-executevalidationrules#afterupdate)

Handler contract for the after-update trigger event.

</div>

---

## Methods

| Method | Description |
|--------|-------------|
| global abstract void [afterUpdate](#afterupdate)([List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm)<[SObject](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_sobject.htm)> newRecords, [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm)<[SObject](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_sobject.htm)> oldRecords) | Called after records have been updated and committed, enabling cascading updates to related objects, notifications, or audit trail entries. |

### afterUpdate

<div class="apex-member">

```apex
global abstract void afterUpdate(List<SObject> newRecords, List<SObject> oldRecords)
```

Called after records have been updated and committed, enabling
cascading updates to related objects, notifications, or audit trail entries.

**Parameters**

| Parameter | Type | Description |
|-----------|------|-------------|
| `newRecords` | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm) | The batch of SObjects with their committed field values. |
| `oldRecords` | [SObject](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_sobject.htm) | The batch of SObjects with their values prior to the update. |

**Example**

```apex
public class TRG_SyncAccountToExternal extends TRG_Base implements IF_Trigger.AfterUpdate
{
    public void afterUpdate(List<SObject> newRecords, List<SObject> oldRecords)
    {
        for(Integer i = 0; i < newRecords.size(); i++)
        {
            if(newRecords[i].get('Name') != oldRecords[i].get('Name'))
            {
                LOG_Builder.build().info('Name changed').emitAt('TRG_SyncAccountToExternal');
            }
        }
    }
}
```

</div>
