• #29773
    Salesforce | Sanjana Sanjana #311

    In how many ways we can invoke the Salesforce Apex Class?

    In how many ways we can invoke the Salesforce Apex Class?


     Anjali #10

    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
    Salesforce | Parul Parul #2

    we can invoke the Salesforce Apex Class:

    1. Visual force page

    2. Web Service

    3. Triggers

    4. Email services



    Salesforce | shariq shariq #1


    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!



    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.


Viewing 5 posts - 1 through 5 (of 5 total)

Please to reply to this topic.


We're not around right now. But you can send us an email and we'll get back to you, asap.


About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?