An administrator needs to ensure that a Flow only executes when a Lead record is created and the 'Rating' field is set to 'Hot'. Which TWO conditions should the administrator configure in the Flow trigger?
Trap 1: Use a Decision element to check if Rating equals Hot.
While a Decision element could evaluate the rating, it is less efficient than using entry conditions. Entry conditions prevent the flow interview from starting entirely if the criteria are not met, whereas a Decision element requires the flow to begin and consume governor limits before evaluating the logic.
Trap 2: Set the trigger to run on create or update.
Setting the trigger to run on both create and update would cause the flow to execute every time a Lead is modified, even if the Rating is not Hot. This leads to inefficient execution and potential performance issues, as the logic would run far more frequently than required.
Trap 3: Set the entry condition to Lead Source Equals Web.
The requirement specifically states that the trigger should be based on the Lead 'Rating' being 'Hot'. Including 'Lead Source' as an entry condition would incorrectly filter the records and prevent the automation from firing on Hot leads that originated from sources other than the Web.
- A
Set the trigger to run when a record is created.
Selecting the 'A record is created' option ensures the flow does not execute during update operations. This is a critical first step in defining entry conditions to minimize transaction overhead and prevent the flow from running unnecessarily when other fields are modified on existing Lead records.
- B
Use a Decision element to check if Rating equals Hot.
Why it fails: While a Decision element could evaluate the rating, it is less efficient than using entry conditions. Entry conditions prevent the flow interview from starting entirely if the criteria are not met, whereas a Decision element requires the flow to begin and consume governor limits before evaluating the logic.
- C
Set the entry condition to Rating Equals Hot.
By specifying the entry condition directly, the Salesforce engine filters the records before triggering the flow. This ensures the business logic only executes for qualifying records, which optimizes CPU execution time and aligns with Salesforce's best practice of minimizing the number of unnecessary flow interviews launched per transaction.
- D
Set the trigger to run on create or update.
Why it fails: Setting the trigger to run on both create and update would cause the flow to execute every time a Lead is modified, even if the Rating is not Hot. This leads to inefficient execution and potential performance issues, as the logic would run far more frequently than required.
- E
Set the entry condition to Lead Source Equals Web.
Why it fails: The requirement specifically states that the trigger should be based on the Lead 'Rating' being 'Hot'. Including 'Lead Source' as an entry condition would incorrectly filter the records and prevent the automation from firing on Hot leads that originated from sources other than the Web.