nerdexam
Salesforce

PDII · Question #398

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of…

The correct answer is D. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's. https://developer.salesforce.com/docs/atlas.en- us.200.0.apexcode.meta/apexcode/apex_bulk_sharing_creating_with_apex.htm

Deploy

Question

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments. Which solution solves these requirements?

Options

  • AA Visualforce page that uses a Custom Controller that specifies without sharing to expose the
  • BA Custom List View on the junction object with filters that will show the proper records based on
  • CA Custom Report Type and a report Lightning Component on the Community Home Page
  • DAn Apex Trigger that creates Apex Managed Sharing records based on the junction object's

How the community answered

(52 responses)
  • A
    10% (5)
  • B
    4% (2)
  • C
    2% (1)
  • D
    85% (44)

Explanation

https://developer.salesforce.com/docs/atlas.en- us.200.0.apexcode.meta/apexcode/apex_bulk_sharing_creating_with_apex.htm

Topics

#Apex sharing#community license#account hierarchy#junction object

Community Discussion

No community discussion yet for this question.

Full PDII Practice