Skip to main content
Koppisetti Charan Sai (Nyros Futureworks Pvt Ltd) ๋‹˜์ด Record Access (Sharing)์— ์งˆ๋ฌธํ–ˆ์Šต๋‹ˆ๋‹ค

I have the following objects:

  • X__c (Master-Detail )
  • Y__c (Master-Detail )
  • XY__c (Junction object between X and Y)
  • Additionally, I have another object that stores Zone__c and Region__c.
  • On the User object, I also have Zone__c and Region__c fields.
  • On the Y__c object, I also store Zone__c and Region__c values, but X__c does not have Zone or Region fields.

My role hierarchy is designed as follows:

  • Zone level โ†’ Branch Manager (e.g., Central, Northern, Southern, Eastern)
  • Region level โ†’ 4 states grouped under each zone

The challenge is: 

 ๐Ÿ‘‰ I need to share

X__c records with users based on their Zone and Region, but since X__c has no direct Zone/Region field

, Iโ€™m not sure how best to set this up. 

Questions:

  1. What are the best practices to implement record sharing for this scenario?
  2. Should I denormalize data (e.g., copy Zone/Region from Y__c to X__c via automation) or rely on junction object relationships for sharing?
  3. Is Apex Sharing a better option here compared to OWD + Sharing Rules?
  4. How do I align this with the role hierarchy for secure but efficient access?
๋‹ต๋ณ€ 1๊ฐœ
  1. 2025๋…„ 10์›” 2์ผ ์˜คํ›„ 7:09

    Role Hierarchy determines record access based on Ownership. 

     

    So who owns these X__c records?

0/9000