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.
¡Siga aprendiendo gratis!
Regístrese para obtener una cuenta y continuar.
¿Qué hay para usted?
  • Consiga recomendaciones personalizadas para sus objetivos profesionales
  • Practique sus habilidades con retos prácticos y pruebas
  • Siga y comparta su progreso con empleadores
  • Póngase en contacto para recibir asesoramiento y oportunidades laborales