You need to sign in to do that
Don't have an account?
Brian C
Copying custom objects & fields from sandbox to scratch org
What is the best method for populating a scratch org with custom objects and their fields from a sandbox? I have tried the following process and have been unsucessful- am I missing a step or doing something incorrectly?
My end goal is to have a repeatable process to replicate custom objects from my sandbox to scratch orgs.
- Within the sandbox, I've created an unmanaged package containing the custom object. I noticed that the package also automatically pulls in dependent classes, pages, etc.
- I've pulled the package to my local environment using:
sfdx force:mdapi:retrieve -s -r packages -u Sandbox -p objectexport
- I've unzipped the downloaded package.
- I've converted the package to DX format using:
sfdx force:mdapi:convert -r packages\objectexportunzipped
- I then try pushing the converted object to the scratch org:
sfdx force:source:push
My end goal is to have a repeatable process to replicate custom objects from my sandbox to scratch orgs.
You can use Changeset to move custom object And fields from sandbox to production
if any issues please do let me know I will be happy to help
Thank you for your reply. As Corey has explained, the issue is with populating a scratch org with custom objects and settings. The ideal way would be an automated process. I'm not against some initial setup of a configuration file containing object data as long as I can reuse it, but I do not know how I would go about setting up such a file.
I tried `sfdx force:mdapi:deploy` to deploy custom object into scratch org, it went well and the custom object is visible in scratch org.
However, `sfdx force:source:status` does not recognize the new custom object....
Anybody knows the answer?
https://tunnel2tech.com/5-best-websites-to-chat-with-strangers-online.html