What is a #Trigger?

A #Trigger is an Executable that listens for Salesforce DML events on a specific object and runs declaratively defined logic in response. It packages input, transformation logic, and a target action into a simple, modular configuration unit — letting you define trigger automation with bulk-safe rules while keeping logic modular and segregated.

The Input is the set of records from a triggering DML event (insert, update, delete, undelete), narrowed by configurable scoping criteria so each #Trigger fires only on the records it should. #Triggers take two forms:

  • Self-Adaptive #Trigger — In-memory transform or validate fields on the same triggering record before it's saved.
  • #Trigger Action — Use the triggering records to perform DML on related records (insert, update, delete, merge) or run any supported action (Lead Convert, Notifications, Approvals, and more).

#Trigger also provides built-in bypass controls and recursion prevention through configuration.