Salesforce Platform App Builder - Practice Test #2
65 complete questions for Salesforce Platform App Builder exam preparation.
Universal Containers wants to automate the creation of an 'Order' record and its associated 'Order Products' whenever an Opportunity with products is moved to the 'Closed Won' stage. Additionally, if the opportunity exceeds $100,000, the order must be marked as high priority. Which declarative tool is best suited for this complex scenario?
Category: Business Logic and Automation
Explanation
Detailed breakdown of the correct answer
Flow Automation (After Save)
To create related records (Order) and iterate over lists of child records (Opportunity Products to create Order Products), an automation that runs after the main record is saved and supports Loops is required.
Therefore, the correct answer is: Record-Triggered Flow (After Save). It allows querying opportunity products, iterating over them, and creating order products, as well as evaluating conditional logic (amount > $100,000).
The option that says: Record-Triggered Flow (Before Save) is incorrect because 'Before Save' flows are optimized only for fast field updates on the triggering record itself, they cannot create related records.
The option that says: Process Builder is incorrect because it cannot iterate over collections of child records (it has no Loop functionality) and is a deprecated tool.
The option that says: Workflow Rules with Field Updates is incorrect because it cannot create records or process collections.