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
Rodolfo CP RitoRodolfo CP Rito 

Trigger - Change Ownership of a Lead

Hi,

I need to create a trigger that changes me the ownership of a lead to a different Queue if a field changes it's value.

Could you please help?

Thanks
Rodolfo CP RitoRodolfo CP Rito
I don't want to use workflows or triggers, because it will update thousands of records at the same time!
Girija Joshi 14Girija Joshi 14
you can use trigger and pass the id and based on that ID you can modify that perticular field. you can write a class methos which acceps ID and make changes to that record only.