Avoid directly accessing Trigger.old and Trigger.new

Impact area

Manageability

Severity

Medium

Affected element

Apex Trigger

Rule ID

SF-0038

Impact

This can lead to hard to debug issues if the trigger Map has been modified.

Time to fix

60 min

Remediation

Triggers should be bulkified and iterate through the map to handle the actions for each item separately.




Last modified on Jun 10, 2020