All Collections
Working with Hutte
Working with Scratch Orgs
Working with Scratch Orgs

Crack the code of Scratch Orgs with source based code and no-code development with Hutte.

Harald Mayer avatar
Written by Harald Mayer
Updated over a week ago

Once you have set up your Hutte Scratch Org project, you are able to easily manage, access, and share Scratch Orgs in Hutte.

Creating Scratch Orgs

  1. Click "New" on your "Scratch Orgs" screen, enter a name, choose a lifetime (duration), and select the Git branch from which you want to create it. The pre-selected Git branch goes back to the default branch of your repository.

  2. Once you click "Create," a Scratch Org shaped according to your "Project Settings" is created, and the “setup_script" and "push_script” from your project's configuration will execute.

  3. The duration of creating your Scratch Org depends on the complexity of your configuration (for example, the amount of metadata that gets pushed). The quota of your available Scratch Orgs depends on the Salesforce org (DevHub) that is connected to your project.

  4. If you are running short on Scratch Orgs, reach out to your Salesforce account executive or to Salesforce support to have your quota raised. Learn more about Scratch Org quotas (limits) here.

Accessing And Sharing Your Scratch Org

Once your Scratch Org is created (you can have a look at the ‘status’ on the list of Scratch Orgs. You'll also be notified by email), you are able to log in either from the list of Scratch Orgs or from the Scratch Org Detail View.

You reach this by clicking on its name on the list of Scratch Orgs. This process also allows you to make your work accessible to team members, such as for acceptance testing, before integrating, persisting, and shipping it.

If you prefer code, you can also easily connect your IDE to your Scratch Org. In the Scratch Org Detail View, click "View Auth snippet," then copy and run the code from a terminal. You have now established a connection and can start pushing and pulling source with SFDX.

Developing Features In Your Scratch Org

No matter if you work directly in your Scratch Org by, for example, making changes to the data model as an admin, or through writing code in your IDE and pushing it to your Scratch Org for validating and running it, once you are ready to carry on with your work, click "Pull changes" on Hutte's Scratch Org Detail View.

A pull request with your work will then be submitted against your connected Git repository.

Did this answer your question?