You need to sign in to do that
Don't have an account?
msreekm
trigger question (data sharing)
User A is inserting a lead ,which executes LeadsTrigger . LeadsTrigger get all leads with the following code- "select id from leads". Q:Will this soql get all the leads or only the leads below User A's role heirarchy. Also can UserA update a lead belonging to UserB (owner).
If this is the case how do we have a logic that will check against all lead records (for eg. de-duping)
Thanks,
Sree
All Answers
Yes, userA can edit the lead record whose owner is UserB, but only if he has the required CRED permissions!
Also, he can view the record as per the role hierarchy or sharing rules defined!
So, in case you want to run a de-dup logic on update/insert, you can do it through the trigger as it executes in the system mode.So, you have to check the duplicacy with all the existing data!
Cool_D