How to get object sharing setting on Organization-Wide Defaults (OWD) using Apex?

Use the below query.

SOQL:

SELECT Id, DefaultAccountAccess, DefaultContactAccess, DefaultLeadAccess, DefaultOpportunityAccess FROM Organization


No comments:

Post a Comment