Trigger environment API
The methods in this section can be used to determine:
- The environment in which your trigger is running: UI, Portal, API, or Delayed.
- What operation is currently being performed: create, update, delete, or something else.
Each of the APIs returns false if called outside of a trigger.