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 ? Oct 4, 2018 at 8:57

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .