Activity › Forums › Salesforce® Discussions › In how many ways we can invoke the Salesforce Apex Class?
Tagged: Batch Class, Javascript Button, Salesforce Apex, Salesforce Apex Class, Salesforce batch Class, Salesforce Trigger, Schedule, Trigger, Web Service
-
In how many ways we can invoke the Salesforce Apex Class?
Posted by Sanjana on July 10, 2018 at 9:52 AMIn how many ways we can invoke the Salesforce Apex Class?
Avnish Yadav replied 7 years, 8 months ago 5 Members · 4 Replies -
4 Replies
-
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
- [adinserter block='9']
-
we can invoke the Salesforce Apex Class:
1. Visual force page
2. Web Service
3. Triggers
4. Email services
Thanks.
-
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 ApexHope this helps!
-
Hello,
Few way to invoke salesforce class are-
- Using Visualforce Page
- Using Lightning Component
- Using External Call
- Using Console
and many more.
Thanks.
Log In to reply.