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
Keep on trailbalazing!
Thank you for reading! Share your thoughts with me on mastodon or via email.
Check out some more stuff to read down below.
Most popular posts this month
- Daggerversary
- SQLite DB Migrations with PRAGMA user_version
- Moving to New Jersey
- Setting up ANTLR4 on Windows
- Forbidden Words
Recent Favorite Blog Posts
This is a collection of the last 8 posts that I bookmarked.
- Pluralistic: What the fuck is a PBM? (23 Sep 2024) from Pluralistic: Daily links from Cory Doctorow
- The Framework 13 has a new high-res screen! from David Heinemeier Hansson
- 40 Thoughts At 40 from Blog – Brad Frost
- To Blog or to Social-Post from jwz
- Gotchas with SQLite in Production from Anže’s Blog
- Petter Reinholdtsen: More than 200 orphaned Debian packages moved to git, 216 to go from Planet Debian
- Eli Bendersky: You don't need virtualenv in Go from Planet Python
- Introducing Writebook from Jason Fried
Articles from blogs I follow around the net
OpenAI Twitter account once again hacked and used to promote scam token
The Twitter account belonging to OpenAI's news account was compromised and used to "announce" a scam website purporting to announce the $OPENAI token. "All OpenAI users are eligible to claim a piece of $OPENAI’s initi…
via Web3 is Going Just Great September 23, 2024DNA Lounge: Wherein a winnar is us!
As foretold by prophecy, you the people have once again declared DNA Lounge to be "Best Nightclub", and Hubba Hubba Revue to be "Best Burlesque" in the 2024 Best of the Bay! Also "Best Pizza" runner-up for DNA Pizza, and "Best D…
via jwz September 23, 2024SmashingConf NYC
I’m extremely excited to be a part of Smashing Conf NYC coming up on October 7-10. I’ll be: If you’re in NYC or able to make it there, I hope you’re able to make it!
via Blog – Brad Frost September 23, 2024Generated by openring