I have master-detail relationship between A-B object. A is master and B is child .
Now the requirement is , that A must be public and B must be private. what's the best way to implement this.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityYour only option is changing the Master-Detail relationship to a lookup. In a Master-Detail relationships, according to the documentation:
The detail record inherits the sharing and security settings of its master record.
To retain the same features of a master detail you'll want to mark the lookup as required and and set it up to delete the child record when the parent is deleted.
You will not be able to do this with a master-detail relationship. The detail records have the same visibility as the master. If the detail documents need their own separate permission settings, you'll need to switch to a lookup relationship.