Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 1.12 KB

File metadata and controls

16 lines (12 loc) · 1.12 KB

SandboxRefreshHandler

This is a solution that takes care of the 'invalid' and '@example.com' dilemma on specified user emails post sandbox refresh.

Tweak to taste. You can add additional logic to automate other post-refresh activities as well.

Usage:

  1. Deploy metadata to Salesforce.
Deploy to Salesforce
  1. Create Internal_User__mdt records in production for each user you wish to sanitize email addresses on (and get rid of 'invalid' suffix) post refresh. Whjen creating these records, populate the User_Id__c field with the user's record Id from Production. Also populate the Email__c field with the user's email. image

  2. When kicking off a sandbox refresh, populate SandboxRefreshHandler into the Apex Class field. image