function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Workflow Task Assignee not updated when opportunity owner changes

I have a workflow rule that creates a task when an opportunity reaches a certain stage.

The tasks are created and assigned to the opportunity owner correctly but with the opportunity owner who is an integration user. So far so everything is ok.

Then a custom object is created and the ownership of the opportunity is set through apex triggers to the correct user.

But the Assigne of the automatically created task does not change, however the workflow rule states that the assigne of the task the opportunity owner is.


Is this something I need to code in apex triggers or something else?