A Salesforce administrator needs to implement automation on the custom object Order_Line_Item__c to fulfill two business requirements:
1. Whenever an Order_Line_Item__c record is created or updated and its Discount_Percent__c field is changed, the flow must calculate and populate Discounted_Price__c on the triggering record before it is committed to the database.
2. When Fulfillment_Status__c is changed to 'Backordered', the automation must create a follow-up Task record for the warehouse team and perform an external REST API callout to notify a vendor system.
Which combination of flow types and trigger configurations represents the optimal architecture to fulfill these requirements while following Salesforce performance and governor limit best practices?
- ACreate a single Record-Triggered Flow configured for Actions and Related Records (after-save) that uses an Update Records element for the triggering record, creates the Task, and performs the callout synchronously in the main execution path.
- Create a Fast Field Updates (before-save) Record-Triggered Flow to populate Discounted_Price__c on the triggering record, and a separate Actions and Related Records (after-save) Record-Triggered Flow with an Asynchronous Path to create the Task and execute the external API callout.Answer
- CCreate an Autolaunchable Flow invoked by a Workflow Rule field update to populate Discounted_Price__c, and use a Process Builder process to create the Task and invoke an Apex callout.
- DCreate a Schedule-Triggered Flow running every 15 minutes that queries all modified Order_Line_Item__c records, uses a Loop element to evaluate changes, updates Discounted_Price__c via an Update Records element inside the loop, and creates related Tasks.