0

We are in the process of migrating our Portal to a Partner Community. Building a replica of what is in our Portal. We want to give our Distributors access to Leads that they have generated. Problem is, they are not the owner of the lead. They generate the leads via a Web-to-Lead form and that is assigned to an internal owner based on the State that the lead is located. There is a field on the Lead that lists the Distributors Account Name.

How do I create a list view that gives access to a Partner Community license user of Leads they have created but don't own?

Thanks

2 Answers 2

2

There are couple of ways you can do this.

  1. Using Queues. Create Queues respective to Distributor Account and assign the Partner Users on that Account to the Queue. Using assignment rules, just assign the Lead to the Queue, so that the members of the Queue get access to the Lead records. This way you will also get the Queue List View available to your Users.

  2. Using Groups. Create Public Groups respective to Distributor Account and assign the Partner Users to that Group. Then using a criteria based sharing rule, share the Lead records to that Group thus providing access to the Users. Users in any List View will be able to view only those records to which they have access to.

  3. Using Apex Managed Sharing. This will be a customization route, where you will need to share the Lead records to respective Users or a Group based on certain criteria as soon as the Lead records are created.

You can find more details on the approaches on their respective links. Also take a look at Share CRM Data with Your Partners trailhead which should provide you with some related details.

4
  • (3) is technically Apex-based Manual Sharing, since it's with a standard object and full-fledged Apex Managed Sharing is not available. Not to be picky, it's just more complex to implement on a standard object.
    – David Reed
    Commented Dec 3, 2018 at 19:06
  • LeadShare can be still utilized, isn't it? I would though agree that it's a bit more complex and I opt to solve such use cases with as much as it can be using config options as long as those can be managed.
    – Jayant Das
    Commented Dec 3, 2018 at 19:11
  • Yes, LeadShare can still be utilized, but you cannot use custom RowCause entries, and share records don't survive ownership changes because they're all RowCause == Manual. They can also be manipulated by users. Code has to be more defensive!
    – David Reed
    Commented Dec 3, 2018 at 19:16
  • Get it now, yes that's true. I was thinking the share object itself cannot be utilized.
    – Jayant Das
    Commented Dec 3, 2018 at 19:17
0

You need to create record of LeadShare for each partner user with whomever you want to share the record.

A similar conversation is here: Creating Lead Shares

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .