We have received a requirement where we need to automate the sandbox refresh activity. Is there any way to automate the same?

Thanks, Ravi Ranjan

  • Have you considered Scratch orgs ? – Samuel De Rycke Oct 4 '18 at 8:57

Yes, you can use the SandboxInfo object to create, refresh, and delete sandboxes. In essence, you use the Tooling API to create, refresh, and delete sandboxes by performing the corresponding action on the associated SandboxInfo object. Create a new record to create a new sandbox, change the appropriate fields to refresh a sandbox, and delete the SandboxInfo record to delete the record. Please read the documentation for additional details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.