You need to sign in to do that
Don't have an account?
Maciej Król 28
Get sharing settings (OWD) options in APEX
I develop application, part of which is implementing of OWD settings edition. First phase is to do it as it is on standard Sharing settings setup. As there are multiple options for standard object - is it achievable to get all possible settings for each standard object?
As per my understanding you cannot get multiple object at one time.
However these settings can be retrieved using the Metadata API.
https://salesforce.stackexchange.com/questions/65191/access-owd-internal-and-external-in-apex
Please mark as Best Answer if above information was helpful.
Thanks,
Thanks but it doesn't answer my question. I want to get all possible options for each object, for example
Account -> Private, Read, ReadWrite
Contact -> ControlledByParent, Private, Read, ReadWrite
Lead -> Private, Read, ReadWrite, ReadWriteTransfer