Activity Forums Salesforce® Discussions In how many ways we can invoke the Salesforce Apex Class?

  • Anjali

    July 10, 2018 at 1:43 pm

    Ways to invoke apex class are

    • Call from Trigger
    • Call from another Apex class
    • Schedule a batch class
    •  Invoke from the Console
    • External WEB service call
    • Javascript using custom button
  • Parul

    September 14, 2018 at 9:34 am

    we can invoke the Salesforce Apex Class:

    1. Visual force page

    2. Web Service

    3. Triggers

    4. Email services



  • shariq

    September 14, 2018 at 11:55 am


    Apex invoking refers to the process of executing the Apex class. Apex class can only be executed when it is invoked via one of the ways listed below −

    Triggers and Anonymous block
    A trigger invoked for specified events
    Asynchronous Apex
    Scheduling an Apex class to run at specified intervals, or running a batch job
    Web Services class
    Apex Email Service class
    Apex Web Services, which allow exposing your methods via SOAP and REST Web services
    Visualforce Controllers
    Apex Email Service to process inbound email
    Invoking Apex Using JavaScript
    The Ajax toolkit to invoke Web service methods implemented in Apex

    Hope this helps!

  • Avnish Yadav

    September 14, 2018 at 1:23 pm


    Few way to invoke salesforce class are-

    1. Using Visualforce Page
    2. Using Lightning Component
    3. Using External Call
    4. Using Console

    and many more.


Log In to reply.

Popular Salesforce Blogs