You need to sign in to do that
Don't have an account?

Developer's console questions
I was wondering:
a) How to "roll back" to a previous version of a method I've written (e.g., I wrote a trigger, and I've changed it over the course of the day, saving each time, but now need to roll back to the version I had last night).
b) Can I test SQL queries using the Execute area? What's the syntax? I've tried [Select Id From Account Limit 5]; and I get errors ("Cannot be a statement")
Thanks.
Hi ,
Here are the answers for your questions :
1. There is no provision to get the previous version of the code, if you did't take the back up manually.
2. You can execute the query in this way :
List<Account> lst= [Select Id From Account Limit 5];
system.debug('List Data: '+ lst);
Please mark it as the solution if it answers your question so that others can also take benifit.
Ckeck My Blog