function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tobias HaggeTobias Hagge 

Developer Console history


I smartly refreshed the sandbox without having released a couple of trigger and testclasses. Is there any way to retrieve them from the Developer Console, or any other way for that matters.

Pretty embarrassing :'(
Sadly you can't do unless you synced your sandbox compoenents in Eclipse and stored locally.

To avoid this kind of problem in future, please follow this procedure

1. Before refreshing the sandbox, use eclipse to download all your code components to your local drive.
2. Keep that local drive copy of your sandbox as backup file
3. Then initiate your sandbox refresh activity
4. Later you can move the your backup copy code (i.e., newly created or not released copy of your code)

You can also use SVN versioning tool which will helps you to avoid some more manual steps and its easy to compare your latest code with your old code copy. Check this article to understand more about SVN