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
Ishan Singh 4Ishan Singh 4 

I want to update a task owner.

I have a trigger which works on (after insert, after update) 

but due to some reason the task owner is not assigned when task is created but when I update the task it's owner name populates. I can not do any changes in existing code beacuse it's too complex. So is there any way by which I can update a task owner when 'Round_Robin_ID__c ' field = 1 to XYZ  

why don't you try workflow/Process builder?
AbhishekAbhishek (Salesforce Developers) 
Hi Ishan,

You can also try the suggestions the as mentioned in the below blogs too,

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Ishan Singh 4Ishan Singh 4


I have already tried process builder and workflow rule but none of them are working.