Post Sandbox Refresh Steps

What steps should be taken after a sandbox refresh to avoid filling up the sandbox storage, sending emails, or outbound messages?

I’m looking for steps to take such as disable scheduled Apex jobs, disable outbound messages, disable analytic snapshots etc.


  • Disable Scheduled Apex Jobs
  • Disable Outbound Messages or point them to QA server endpoints.
  • Reconfigure External Web Service calls for a non-production environment
  • Overwrite Custom Settings to non-production ones – might vary between projects but worth to check. Sometimes custom integration credentials are saved as Custom Settings.
  • Disable S2S connection copied from production (if applies)
  • Disable Analytic Snapshots
  • Get the new Sandbox Org ID and instance Id if required
  • Remove the email suffix for required users
  • Create any required users who don’t exist in Production
  • Regenerate (or completely disable) Inbound Email Services
  • Delete / modify entries in Remote Site Settings if you don’t want to perform certain callouts.
  • Disable “Big Deal Alert” on Opportunities – can be embarassing to send an email with “My awesome test Opp !!1” to CEO
  • If you have managed packages with API keys (like FinancialForce) – ask their support teams to regenerate the keys
  • If you have “power users” that will coordinate User Acceptance Testing – create entries in Delegated Administration area so they can “login as”

(since Spring ’13)

  • If you want to see the “send an email” button on Activities related list or wonder why you don’t get any notifications from approval processes – set Email Deliverability to “All Email”

(since Spring ’16)

  • Consider implementing SandboxPostCopy to automate steps in Apex after a sandbox is copied.

Specific for full sandboxes

  • break Email addresses on Contacts, Leads etc. with suffix like it’s done for users (and wherever you store email info if there’s any risk of routine communication kicking in for example from workflow email alerts)
  • disable Weekly Data Export?
  • if you have email templates or documents with sensitive data (like Purchase Order and scanned signature of approver) it might be worthwhile to cripple them somehow (fake logo, big red “TEST ONLY” etc..). Documents won’t be carried to non-full sandboxes though

Source : Link , Question Author : Community , Answer Author :
7 revs, 4 users 49%

Leave a Comment