+ Start a Discussion
jitendra singh 172jitendra singh 172 

What is the meaning of callouts in apex ?

I didn't understand the concept of callouts in apex . 
1. In batch - Callouts
2.In trigger  - Callouts 
3. In API - Callouts 

 
Siva Poreddy 11Siva Poreddy 11
@jitendra singh 172

All callouts are coming under one umbrella.

Callout means making a call to an external Web service or sending an HTTP request from Apex code and then receiving the response. REST callouts are based on HTTP, Each callout request is associated with an HTTP method and an endpoint. Apex provides integration with Web services that utilize SOAP and WSDL, or HTTP services (RESTful services).

In a simple example. 
If you’re in a famous Hotel, you want to order some food.
How you will order food?
You will call the waiter and give your order(GET Request). Waiter will take the request and send it to chef(API). Chef will prepare food from kitchen(Server) and send back to waiter.
Waiter will serve the food(Response) to you.


Regards,
pandu ranga 16pandu ranga 16
Hi 

Callout means making a call to an external Web service or sending an HTTP request from Apex code and then receiving the response. REST callouts are based on HTTP, Each callout request is associated with an HTTP method and an endpoint.

 
Vanessa CostaVanessa Costa
Thanks a million for your explanation @SivaPoreddy11 ! 
Tanya fosilTanya fosil
Hello
An Apex callout enables you to tightly integrate your Apex with an external service by making a call to an external Web service or sending a HTTP request from Apex code and then receiving the response. Apex provides integration with Web services that utilize SOAP and WSDL, or HTTP services (RESTful services). (https://www.nexus-iceland.com/)