You need to sign in to do that
Don't have an account?

"insufficient access rights on cross-reference id" in lead sharing
Hi,
I am getting the above error when I am sharing a lead through apex.
Scenario: I am creating a lead by logging in as Partner User. When the assignment rule checkbox is checked the created lead get assigned to another user. I wanted to share that lead with the created user ID(Partner user). For this purpose, I wrote trigger. When the trigger get fired it is throwing the above exception.
How can I resolve it??
Thanks in advance!!
Hi,
Please go through the link below may be it helps you on this issue.
https://ap1.salesforce.com/help/doc/en/partner_portal_assign_leads_to_partners.htm
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi Navatar,
In my case, assignment rule is working fine. After the assignment rule lead is getting assigned to another user. So, the partner user is not getting the read permission even though he created it. I want to give read access to the partner user.
So, I wrote trigger. But the trigger is throwing the exception..
pls run the debug logs.We can know as to where is the exception being fired
I am using the following code..