SalesforceTrailhead
  • Today
© 2026 Salesforce, Inc. All rights reserved. Privacy Terms of Use Trust Accessibility Cookie Preferences
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.
Check StepDemo check
Previous UnitCreate an Apex ClassBack to Badge Quick Start: Apex