PDI · Question #31
Which three operations affect the number of times a trigger can fire? Choose 3 answers
The correct answer is A. Process Flows B. Workflow Rules E. Roll-Up Summary fields. This question asks to identify which declarative automation and field types can cause a Salesforce trigger to fire, often multiple times, during a save operation.
Question
Which three operations affect the number of times a trigger can fire? Choose 3 answers
Options
- AProcess Flows
- BWorkflow Rules
- CCriteria-based Sharing calculations
- DEmail messages
- ERoll-Up Summary fields
How the community answered
(32 responses)- A91% (29)
- C3% (1)
- D6% (2)
Why each option
This question asks to identify which declarative automation and field types can cause a Salesforce trigger to fire, often multiple times, during a save operation.
Process Flows (now often referred to as Salesforce Flows) can perform DML operations and updates, which in turn can cause Apex triggers to execute.
Workflow Rules can update fields on a record, and these updates will re-evaluate and potentially re-fire any associated Apex triggers.
Criteria-based Sharing calculations determine record access but do not directly perform DML operations or field updates that would cause a trigger to fire.
Email messages are an output action, not an operation that performs DML or field updates on records in a way that would cause triggers to fire.
Roll-Up Summary fields recalculate when child records are created, updated, or deleted, or when master records are updated, which are DML operations that can cause triggers on the parent object to fire.
Concept tested: Trigger recursion and order of execution
Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm
Topics
Community Discussion
No community discussion yet for this question.