1

We use in our org case sharing (Setup-->Security Controls-->Sharing Settings-->Case (Default Internal Access From Public Read/Write/Transfer to Private))

Wa want this sharing settings in place when we create our scratch orgs, Is there a way to achieve that by sfdx cli command or some config in the project-scratch-def.json file?

After some searches, i have locate the information by SOQL:

Organization o = [Select DefaultCaseAccess from Organization];

But i can't update it by apex code for example

o.DefaultCaseAccess = 'None';

The field is not writable:

Field is not writeable: Organization.DefaultCaseAccess

Thank you for your help;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.