function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DSimpsonDSimpson 

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.

NiketNiket

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