Salesforce DX External Sharing Model
I was working through the Getting Started with Salesforce DX module on trailhead and when it came time to push the Dreamhouse app up to my scratch org I got a dozen or so error messages complaining about all sorts of things.
PROJECT PATH ERROR ────────────────────────────────────────────────────────────────────────────────────────────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── force-app/main/default/objects/Property__c/Property__c.object-meta.xml Can't specify an external sharing model for Property__c force-app/main/default/objects/Favorite__c/fields/Property__c.field-meta.xml referenceTo value of 'Property__c' does not resolve to a valid sObject type (65:13) force-app/main/default/objects/Favorite__c/listViews/All.listView-meta.xml In field: columns - no CustomField named Favorite__c.Property__c found (88:16) force-app/main/default/layouts/Broker__c-Broker Layout.layout-meta.xml In field: relatedList - no CustomField named Property__c.Broker__c found (81:19) force-app/main/default/layouts/Favorite__c-Favorite Layout.layout-meta.xml In field: field - no CustomField named Favorite__c.Property__c found (13:26)
Luckily the error messages are pretty useful. In this case it looks like the “External Sharing Model” was not turned on in my scratch org. This appears to be turned off by default.
In order to get this step to work:
-
- Log into your scratch org
sfdx force:org:open
- Go to Setup
- In the Quick Search box look for Sharing Settings
- Click on Enable External Sharing Model
- Log into your scratch org
![Sharing_Settings___Salesforce](https://levlaz.org/wp-content/uploads/2018/02/Sharing_Settings___Salesforce.png)
Keep on trailbalazing!
Thank you for reading! Share your thoughts with me on bluesky, mastodon, or via email.
Check out some more stuff to read down below.
Most popular posts this month
- 2024
- Reinstalling Windows at 1am
- SQLite DB Migrations with PRAGMA user_version
- My Custom Miniflux CSS Theme
- How to Disable Wayland in Debian Testing
Recent Favorite Blog Posts
This is a collection of the last 8 posts that I bookmarked.
- 21st Century C++ from Communications of the ACM
- Submarines DevCon 2025 Keynote Speech from JoshHaines.com
- How I Use AI: Meet My Promptly Hired Model Intern from Armin Ronacher's Thoughts and Writings
- DeepSeek from Maggie Appleton
- Digital Reality Digital Shock from Christopher Butler
- 10 habits to help becoming a Debian Maintainer from Optimized by Otto
- Tiny corners from Manuel Moreale RSS Feed
- Build It Yourself from Armin Ronacher's Thoughts and Writings
Articles from blogs I follow around the net
Pluralistic: America and "national capitalism" (18 Feb 2025)
Today's links America and "national capitalism": How the EU should respond to Trumpism. Hey look at this: Delights to delectate. Object permanence: 2005, 2010, 2015 Upcoming appearances: Where to find me. Recent appearances: Where I've bee…
via Pluralistic: Daily links from Cory Doctorow February 18, 2025My Life in Weeks by Gina Trapani
OMG. Life perspective through UI. I freaking love it. Check out My Life in Weeks by Gina Trapani
via Blog – Brad Frost February 18, 2025Argentinian president Javier Milei promotes memecoin that then crashes 95% in apparent $100 million+ rug pull
A tweet from Argentina's president Javier Milei promoted a memecoin called Libra, which he described as a "private project [that] will [be] dedicated to encouraging the growth of the Argentine economy by funding small Argenti…
via Web3 is Going Just Great February 18, 2025Generated by openring