Skip to main content

Invoke and Test the Code

Run the Code

An anonymous block is Apex code that does not get stored, but can be compiled and executed on demand right from the Developer Console. This is a great way to test your Apex Classes or run sample code.

  1. In the Developer Console, select Debug | Open Execute Anonymous Window.
  2. In the Enter Apex Code window, enter the following:
    OlderAccountsUtility.updateOlderAccounts();
    
  3. At the bottom right, click Execute.
Continua a imparare gratuitamente!
Registra un account per continuare.
Cosa troverai?
  • Ottieni consigli personalizzati per i tuoi obiettivi di carriera
  • Metti in pratica le tue competenze con sfide pratiche e quiz
  • Monitora e condividi i tuoi progressi con i datori di lavoro
  • Accedi a risorse di tutoraggio e opportunità di carriera