Own data seeding is the process of populating a Salesforce org 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.
- Records to be included in seeding (field "Is Included in Seeding?" = true) should be chosen by people who knows business and technology (Dina, Ann, Julien, e.t.c). on production and then migated to UAT when the UAT sandbox is refreshed. However for now the script has been prepared that selects these records based on data sheet that used to be used to data seeding https://aodocs.altirnao.com/?locale=en_US&aodocs-domain=solvay.com#Menu_viewDoc/LibraryId_QaWbTYEtjpk7b24jVh/DocumentId_TRPZCls0iRDCvcEAlu/ViewId_QaWbVwAysJMabBxB56 the scrip can be found here:
The script mentioned above should be used only in situation when right records were not marked on production
- There is another data model limitation. Cases can be assigned to contracts of the accounts that belong to the same corporate group as the account to which the case is assigned
Because of this approach when we need to download all accounts from a given corporate corporate group to avoid data inconsistencies when we are inserting cases. To achieve that following script was introduced that marks them.
Because of the fact that products are copied to the sandbox by salesforce when the new sandbox is created and own data seeding template also copies products duplicates occurs. Unfortunatelly 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. It Changes the material group and material code of products that were copied during sandbox creation.