フリー問題

Salesforce Certified Platform Developer のフリー問題 10 / 20 問目

問題文

A property management company has an after-insert trigger and an after-save record-triggered flow on the lease object. Both write to the same renewal status field. The value that survives seems to change from one save to the next. What is the correct conclusion?

選択肢

  1. The order is fixed by the save order of execution, so the fix is to read that documented sequence and design the two automations to write in the order it specifies rather than changing which one owns the field.
  2. The relative order of those automations isn't guaranteed, so make one of them the single owner of the field and have the other read the value instead of writing it, because a field with one owner has one value that survives the save.
  3. The flow and the trigger run in separate transactions, which is why the outcome varies, and the fix is to make the flow run asynchronously so that it always completes after the trigger's transaction has committed its own value.
  4. Triggers always run before flows, so the flow is simply overwriting the trigger and the trigger's logic should move into the flow that already owns the field on the lease.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。