4

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?

  • 2
    Check out Salesforce documentation : help.salesforce.com/apex/… If the query gives nothing, then you may not be able to recover the class. – Riadh Mankai Mar 5 '16 at 8:22
  • If you did development in Eclipse or like any IDE, you can compare class file with local history. – Ysr Shk Mar 5 '16 at 10:18
4

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.