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
GuanDongGuanDong 

Trigger to assign Event Owner to Account Owner

Hi there!


I'm a newbie and I'd like to ask you if somebody could write a trigger for me that is able to change the Account owner with the User a new Event is assigned to.


Thanks a lot,


Kind Regards
ManojjenaManojjena
Hi guanDong,

Could you please explain your requirment properly .
GuanDongGuanDong
Ok!

Situation is the following:
I create a new Event on an Account owned by User X and I assign this event to User Y.
Then, I'd like to have a trigger that changes the ownership of the Account to user Y.

Thanks a lot