function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jörn Flath 15Jörn Flath 15 

Enable Community and Enable Salesforce to Salesforce in Salesforce DX

Hello fellow Salesforcers,

I am quite new to Salesforce DX and am currently trying to get the two features, "Enable Customer Portal" and "Enable Salesforce to Salesforce", to be enabled automatically during the scratch org creation.

As far as I read, the feature "Communities" and the Org Preference "NetworksEnabled", would provide this. But the newly created scratch orgs do not have these features enabled.

This is the JSON, I am currently using:

{
  "orgName": "default_scratch_org",
  "edition": "Developer",
  "features": ["Communities"],
  "orgPreferences": {
    "enabled": [
      "NetworksEnabled"
    ]
  }
}

Is there anyone to have encountered this issue as well and could help me?

Thanks a lot in advance
Jörn