Custom Visibility Code

Hi Everyone,

Does anyone know if it's possible to have custom visibility code that will show a module results in the sub panels under a record but not allow the user to open that result or view the result in a report unless that have access to the team associated with the result? Hopefully the example below makes sense.

Example:

Organization #1:
Opportunity 1 - Blue Team
Opportunity 2 - Red Team

In the example above, I would want to open up organization #1 and see both opportunities below it. However if I am only on Red team then I should not be able to open up Opportunity 1 as it is assigned to Blue team or see it in a report.

Thanks in advance!

Parents Reply Children
  • Hi:)

    Looks like Team-Based Permissions should solve this task:
    Let's say - Sarah has default teams: Global (primary) and Blue (selected)

    Will has default teams: Global (primary) and Red (selected)

    Both they are under Role that has the following settings:

    When Sarah creates Opportunity 'BLUE TEAM', this Opportunity has Teams Global (as primary) and Blue (with 'enabled additional permissions')

    When I login as Will, I see 2 Opportunities on Subpanel (because in Will's Role there is 'All' access to List and Will is in Global Team), but I can't open record view from Blue Team (because in the Role there is 'Owner & Selected Teams' and neither Will is Owner nor part of a Blue Team).

    And Sarah sees two Opp-s as well, but can open Opp of Blue Team:

    And let's say there is Sally from the Blue team - Sally sees both Opps, but can open only the blue one:

    what are your thoughts on using Team-Based permission to solve this task?