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
  • 2
    Check out Salesforce documentation : help.salesforce.com/apex/… If the query gives nothing, then you may not be able to recover the class. Commented 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 Shk
    Commented Mar 5, 2016 at 10:18

1 Answer 1

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .