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
william1.390506530291986E12william1.390506530291986E12 

Trigger assignment rule

I am trying to create a trigger where when a salesrep goes into a lead it will automatically assign them as the lead owner. 
Satish_SFDCSatish_SFDC
What does going into a lead mean?
Does that mean when sales reps just opens the lead record, it should be assigned to him. If this is the case, i dont think this is possible using standard functionality. However, this might be possible using Javascript where you call salesforce API using the AJAX toolkit and thereby update the lead record.

Please let me know if i misunderstood.

Regards,
Satish Kumar