+ 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 https://developer.salesforce.com/page/Using_Force.com_with_Subversion_for_Team_Development