問題文
A cheese maker has three requirements on Batch__c: set a default grade on the record being saved, update the related Vat__c records when the grade changes, and notify an external quality system. Which combination fits the three requirements?
選択肢
- A before-save automation for the default on the same record, an after-save automation for the related records, and an asynchronous callout or a platform event for the external notification.
- A before-save automation for the default, an after-save automation for the related records, and a synchronous callout from the after-save trigger, because at that point the record has already been written to the database and the transaction therefore has no pending work left to settle.
- An after-save automation for all three, because the record must exist before any of the work can be done.
- A before-save automation for all three, because doing everything in one place keeps the order predictable and avoids a second pass through the save order, so the vat records are written in the same pass.