Skip to content

Instantly share code, notes, and snippets.

@manzanit0
Created June 27, 2018 11:15
Show Gist options
  • Save manzanit0/e785d19759150e94484348a8eb5dabeb to your computer and use it in GitHub Desktop.
Save manzanit0/e785d19759150e94484348a8eb5dabeb to your computer and use it in GitHub Desktop.
global class PrepareMySandbox implements SandboxPostCopy {
global void runApexClass(SandboxContext context) {
System.debug('Org ID: ' + context.organizationId());
System.debug('Sandbox ID: ' + context.sandboxId());
System.debug('Sandbox Name: ' + context.sandboxName());
// Insert logic here to prepare the sandbox for use.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment