I had an Apex Class
of 900+ Lines Of Code two days ago. Now it only has 2 LOC. How can I retrieve the missing code? Is it possible to get it back?
-
2Check out Salesforce documentation : help.salesforce.com/apex/… If the query gives nothing, then you may not be able to recover the class.– Riadh MankaiCommented Mar 5, 2016 at 8:22
-
If you did development in Eclipse or like any IDE, you can compare class file with local history.– Ysr ShkCommented Mar 5, 2016 at 10:18
Add a comment
|
1 Answer
The simple answer is: you can't. If it's in a sandbox and you contact salesforce ASAP they may have a copy of your sandbox and may be able to restore it. I can verify I've had it done.