I've created my SFDX project in my IDE (VSCode), pulled my app code from my dev org where I created it before using SFDX, pushed it to my Git repo, cloned a branch into my local repo, created a scratch org (Enterprise) and pushed my source to the scratch org. (Big thanks for this blog from Christophe Coenraets.)
Now, I need to pull data from my original dev org, including the standard Contacts, Leads, Accounts, Opportunities, Cases that are pre-populated in Dev Orgs, as well as sample data in about 8 custom objects.
I'm looking at the SFDX Dev Docs on Export/Import Data Between Orgs, and I have some questions.
- Isn't there some kind of bulk command, rather than specifying every field in every object you need in a SOQL query?
- Do I have to create nested SOQL queries of multiple objects to maintain master-detail and lookup relationships?
- My dev org has a namespace -- not the one I intend to package the app with. (I know... I'm learning.) I've managed all of that in my APEX and Lightning code (without hardcoding), but a SOQL query has to include the namespace prefix for the custom objects/fields. Will that old namespace prefix port to the scratch org (don't want it to.) Thankfully, when I pulled the source from the dev org, the namespace is not on my custom objects.
Any suggestions are greatly appreciated!