Data Seeding is the process of populating a Salesforce org (such as a sandbox) with relevant test or sample data to simulate real-world scenarios. It involves carefully selecting, preparing, and loading data sets that closely match production conditions while protecting sensitive information. By using seeded data, teams can thoroughly test features, train end users effectively, and showcase realistic demos without risking production data integrity.

Chosen approach:

Preparation of Production/UAT (source of data seeding)

Preparation of sandbox to which we will insert records (data seeding destination)


Because products are copied to the sandbox by salesforce itsel when the new sandbox is created and own data seeding template also copies products duplicates occur. Unfortunately there is a custom mechanism that prevents of creation duplicates the entire data seeding fails. To fix this problem the script that prepares sandbox for dataseeding has been created. It needs to be executed at the destination sandbox before we run the data seeding . This script changes the material group and material code of products that were copied during sandbox creation.


Template creation/Modification

Creation of the Template for data seeding creation is intuitive but there are some hints that needs to be taken into consideration  

When adding children of the roots object you also need to add parents and grandparents (or even great-grandparents) of these children. Otherwise, you might face data inconsistencies:


Data seeding.

When the template is ready for data seeding (test data seeding or real data seeding you need to