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
tanushree roy 6tanushree roy 6 

Add a method to a class in trailhead

Hi,
I did this code there is no error showing when I save this code but still trailhead showing me error..
public class OlderAccountsUtility {
    public static void updateOlderAccounts() {
    
    Account[] oldAccounts = [SELECT Id, Description FROM Account ORDER BY CreatedDate ASC LIMIT 5];
    //update the Description field
    for (Account acct : oldAccounts) {
        acct.Description = 'Heritage Account';
   }
   update oldAccounts;
}
}


and the error is --
Challenge Not yet complete... here's what's wrong: 
The 'updateOlderAccounts' method did not update account records as expected 
Note: you may run into errors if you've skipped previous steps.

And one more thing I want to know that where is the Start Tour option in developer console ??
please help me out..


thanks and regards
Tanushree Roy
Benoit VAQUEZBenoit VAQUEZ
There's no answer here and i have the same problem nearly two years later...