Config as Code: Can you copy data from Production to Sandbox?

Hello,

After going through the Customize Field Sections Hitchhiker module, my client is interested in utilizing this feature in their Knowledge Graph. Before they try this in their live Production account, they want to test this in a demo environment.

I was hoping to copy some of their data into a new demo account to test this functionality. However, they have hundreds of custom fields which will be very difficult to recreate one by one in a demo account. I think this would be a great opportunity to use Config as Code to copy the custom fields from the Production account into the Demo account.

That said, I wanted to confirm that it’s possible to use Config as Code to copy data from a Production account into a Sandbox environment.

Thank you!
Austin

Hi Austin,

Great question. Yes - you can do so through admin console and Github by following these steps:

  1. Navigate to the client’s production account, click on Admin Console and download their files like so:

  2. Upload those files to a Github repo. You can create one here - Sign in to GitHub · GitHub
    Make sure to note the repo URL as you’ll use it in the next step.

  3. Then navigate back to Sandbox where you’ll enter the following URL to go to Admin Console with the new github repo like so: Admin Console[[Insert repo url]]

  4. Apply your changes to the demo account

Let us know if you have any questions or trouble.

Best,
Alyssa

Hi Alyssa,

Thank you for the quick response on this, much appreciated!

I followed the steps above and was successfully able to upload the files to the Github repo that I created. However, when I tried entering the url Admin Console [[repo url]] I am redirected to the following screen:

Any guidance would be much appreciated.

Thank you!
Austin