You have strict guidelines around who can access your production data. Meanwhile, developers want to use production data for testing their changes. Gearset’s data loader now lets you exclude records from a deployment, making it easy to fine tune a set of test data.
Why would I need to exclude records?
Using production data for testing is a great way of finding real-life edge cases. Developers can generate test data, but it’s easy to miss complex scenarios which exist in production. Without testing on production data, problems only reveal themselves in production.
The problem with using production data is that your organization has a duty to protect that data. As a Salesforce admin you have controls in place to ensure that users can only access specific records.
You want to give developers data so that they can check their changes work. You don’t want to give access to everything. For example, you may want to avoid giving access to sensitive accounts or active opportunities.
How do I set up a filter?
Until now, filters in Gearset’s data loader have been inclusive. This makes it painstakingly slow to exclude a single record - you have to include every other record.
You can now choose between equals and does not equal when creating a filter.
A does not equal filter means that the deployment excludes any records with a field matching that value. You can check the filters that the deployment will use in the deployment plan.
Filters to exclude records are saved in our data deployment templates.
Keep your data protected
Excluding and obfuscating data during sandbox seeding is key to keeping your production data secure, while also giving your team reliable data for testing. Try out our Salesforce sandbox seeding tool for yourself with a free 30-day trial.