0

The standard "change owner" on account record has surprising behavior.

Salesforce Standard Change Owner Behavior

When changing account owner, opportunities owned by the current owner are changed. However, logic in opportunity trigger cannot be properly processed.

Issue

  • the standard button doesn't cause opportunity trigger even though changing opportunity owner.
  • opportunity trigger cannot catch the old opportunity owner id in any case if transaction starts with the standard button.

Due to above two issues, our business logic, dependent on opportunity owner changing, cannot be processed consisitently.

Anyone has workaround for this?

0

Operations like this do not automatically cascade trigger executions for performance reasons. The most robust solution today would involve querying existing Opportunity records in an After Update Account trigger (to keep track of the old owners), then calling a Queueable method to check if the ownership changed, and take appropriate action at that time. It's worth noting that this behavior is not a bug, but a design feature.

1
  • I see. Thank you @sfdcfox The workaround sounds workable.
    – Rick Yang
    Oct 10 '20 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.