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

  • Anjali

    Member
    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

    Member
    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

     

    Thanks.

  • shariq

    Member
    September 14, 2018 at 11:55 am

    Hi,

    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

    Member
    September 14, 2018 at 1:23 pm

    Hello,

    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.

    Thanks.

Log In to reply.

Popular Salesforce Blogs