I've built a 2GP Package that I am trying to release as a Unlocked Package.
I've overcome various validation errors due to missing features or settings in my Scratch Org Definition file.
However my package includes a Sharing Set which depends on the Contact being 'Private' and by default its 'Controlled by Parent', is there a way to define this feature/setting in my Scratch Org Definition File?
@* Experience Cloud * @*Experience Cloud Developers* @Unlocked Packages @Salesforce DX @* Salesforce Platform *
#Salesforce CLI #SFDX CLI #Salesforce Platform #Unlocked Packages #Unmanaged Package #Second Generation Packages #Scratch Org Definition #Experience Cloud #Experience Builder
@Tom Bassett this might help you - https://salesforce.stackexchange.com/questions/218183/sfdx-sharing-settings-scratch-orgs
Is your package ultimately intended for public consumption, or are you just using it internally with your own org(s)? Deploying sharing-related settings on standard objects can be tricky because the destination org may have valid reasons for how sharing is configured on their standard objects and can't change to support your package.