Coconut King of Salesforce Sandbox — Data Anonymization and GDPR

Option 1: Automated Anonymization on Refresh with Salesforce’s SandboxPostCopy

global class PrepareMySandbox implements SandboxPostCopy {
global void runApexClass(SandboxContext context) {
System.debug('Begining Cloud Compliance Anonymization');
// This line of Apex code will execute Sandbox Anonymization //for a given object mapping. //Anonymize Contacts
pccc_dm.CloudComplianceSandboxDeIdentify.execute('a0B18000005iCCfEAM');
//Anonymize Leads
pccc_dm.CloudComplianceSandboxDeIdentify.execute('a0B18000005iCCkEAM');
}
}

Option 2: Manual/Self-initiated Anonymization and Refresh with Extract → Anonymize → Load

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloud Compliance

Cloud Compliance

4 Followers

Salesforce ISV, creator of 'Cloud Compliance - GDPR Data Management' AppExchange package to remove personal data and de-identify records without deleting them.