Getting Started

  • What is Trailhead
  • myTrailhead
  • Trailblazer Community
  • Career Growth

Learn

  • Trails
  • Trailmixes
  • Modules
  • Projects

Credentials

  • Superbadges
  • Certifications
  • Maintain Certifications

Salesforce

  • Salesforce.com
  • AppExchange
  • Developers
  • Help Portal
© 2026 Salesforce, Inc. All rights reserved. Privacy Terms of Use Trust Accessibility Cookie Preferences
SalesforceTrailhead
  • Today
Quick Start: Apex

Call an Apex Method

+200 Points~10 minsHands-On ChallengeCompleted
Quick Start: ApexCall an Apex Method

Org:Mindful Goat Playground

Topics

  • Execute Anonymous Apex

Looking for help?

Explore Help ResourcesShare Your Feedback
Learning Objectives

After completing this unit, you'll be able to:

  • Run Apex with Execute Anonymous.
  • Read the debug log.

Execute Anonymous Apex

  1. Click Debug > Open Execute Anonymous Window.
  2. Enter System.debug(HelloWorld.greet()); and click Execute.
  3. Open the log and filter to Debug Only.
Verify StepDemo check
Previous unitCreate an Apex ClassBack to project Quick Start: Apex