How To Load Data Into A Scratch Org

Loading data into a Salesforce scratch org can be beneficial for various reasons. Firstly, it can enable developers to test their code with realistic data and configurations, identifying and fixing issues before deploying to production.

How To Load Data Into A Scratch Org
Table of contents

It can also be used to replicate data from production in a non-production environment, facilitating testing and development without affecting the production environment. This can be especially useful for debugging issues or testing new features.

Additionally, loading data into a scratch org can help ensure data consistency across different environments, allowing developers to work on the same dataset and avoid conflicts or inconsistencies.

But there are limitations to loading data into a scratch org, which include the following:

Loading data into a scratch org can be time-consuming

This can slow down the development process and impact developer productivity.

Loading sensitive or confidential Salesforce data into a scratch org can raise data privacy concerns

Developers need to ensure that they are not violating any data privacy laws or regulations and that the data is protected appropriately.

Scratch orgs have limited storage capacity in Salesforce

Loading large amounts of data can quickly exhaust the storage limits. Developers may need to consider data size and storage capacity when loading data into scratch orgs.

Loading data into a scratch org can also create inconsistencies between different Salesforce environments

This is especially true if the data in the scratch org is not kept up-to-date with the data in production or other environments. This can lead to confusion and errors in development and testing.

Loading data can require data manipulation and cleaning

Developers may need to spend significant time ensuring their data is correctly formatted and structured in Salesforce before loading it into a scratch org.

To address these cons, companies often use third-party tools, like Hutte, to simplify and enhance the capabilities of loading data into their scratch orgs.

Hutte Enhances The Functionality Of Your Scratch Orgs




Type of tool

A command-line interface.

A visual web-based user interface to SFDX.

User interface


Web-based visual Salesforce version control with scratch org and sandbox management.

Ease of use

Not accessible for developers who are new to CLI.

No need for code or CLI, making it easier for non-developers to use.


Requires installation of SFDX CLI.

No installation required.

Visual Git integration

No visual Git integration.

Web-based visual Git integration with GitHub and Azure hosting, allowing line-by-line comparison of changes.

Custom commands

Custom commands require manual entry.

Custom commands can be exposed in a custom button on the Hutte interface.

Dependency management

Dependencies and configurations must be managed manually.

No need for manual dependency management, as Hutte is an all-in-one platform for Salesforce version control.


Performance may be affected due to connectivity restraints.

No performance issues.

Target user group

Experienced developers who are comfortable with command-line interfaces.

Non-developers who prefer a graphical user interface, and experienced developers who prefer visual tools.

When using Hutte's YAML push script, you can define what happens when scratch orgs and development environments are spun up.

You can also execute any arbitrary amount of code. Additionally, you can push data or metadata using native SFDX within your script.

One of the many benefits of using Hutte is that you don't need to install or learn Git, as our UI already has integrated recipes on Git hosting tools.

Furthermore, you can pull and export your data.

Everything is generated and integrated with Hutte, so there's no need to reproduce any data.

To try out Hutte for yourself, you can start a free 30-day trial or check out our demo.

In this article, we'll go through how to load data into a scratch org by managing them with Hutte.

Enjoy A Collaboration-Friendly Environment For Your Scratch Org Creation

Using the "New scratch org" button, multiple users can create their own scratch orgs, which the team can then access collectively.

​​With Hutte, you have the ability to select a Git branch from which you want to create your environment and name it. All your scratch orgs will be stored in one place, allowing you to view a historical overview or snapshot of your projects, apps, and codebases created in Git.

This feature is especially helpful for teams that want to collaborate and contribute to each other's work.

Without Hutte, relying solely on CLI can be challenging. However, with Hutte, you can easily:

  • Load data
  • Make changes to the latest state of your source
  • Implement new features
  • Ship them to Git.
Once integrated with Hutte, developers can load the data on the scratch orgs page, rather than manually telling the team that they have provisioned an environment. The team can find the branch by clicking "New scratch orgs," create a scratch org from that branch, and view it in their list of scratch orgs.

You won't need to run the code locally or worry about it blocking your machine, as it will run asynchronously on Hutte's infrastructure. When your scratch org is ready, you can log in and test it without affecting other users' data.

Essentially, Hutte empowers users to manage and select their own environments easily, simplifying the scratch org data loading process.

Take From The Pool

Hutte provides a pool of pre-created orgs, allowing you to quickly and easily spin them up without any wait time. By selecting a scratch org from the pool, you can further speed up the process when you need an environment from the latest state of your source. 

To claim a pool, simply select "Take from pool" and enter the name of the pool you want.

To customize your pool, you can go to "Settings" and adjust the size and duration of the pool.

This feature allows you to dimensionate your pool according to your needs, providing flexibility and control over your resources and data.

Hutte’s Jira Plugin

If you make use of Jira, there will be a corresponding work item. Hutte's Jira plugin can then identify scratch orgs that reference the same name as your work item (or issue).

As a product manager, you can leave a comment for the developer who worked on the scratch org you selected. This feature facilitates collaboration without interfering with or overriding the work done by a developer.

Loading Data Into A Scratch Org Made Simple

Although scratch orgs are meant to be individual workspaces for exploring and testing features in isolation, working collaboratively can help overcome various challenges.

Issues such as configuration management, data loading management, and managing multiple scratch orgs become more efficient and streamlined with collaboration.

Collaboration also enables:

  • Code sharing
  • Data loading
  • Dependency management
  • Workflow optimization.

These factors lead to increased productivity and efficiency.

With Hutte, teaming up with others not only simplifies scratch org data, but it also enhances the development process.

Hutte is truly one of the best tools that we use. Product owners, Salesforce solution architects, business analysts β€” anyone on our team can easily and visually accomplish the tasks that would otherwise take a lot of clicks, time, and coding.

Sebastian Lechner

Product Management Director of IPfolio

Source: Hutte