+ Start a Discussion
letsbeahumanletsbeahuman 

Apex callout

Hi Salesforce Experts,

 

Can anybody help me? Why Callout is used? How Callout works with example?

 

 

Thanks

letsbeahuman

 

Ashish_SFDCAshish_SFDC

Hi Letsbeahuman,

 

Apex callout is a function that runs from within our Salesforce Code and triggers or invokes some activity that is externally Shared ie.. outside Salesforce. 

Ex. based on the address in our Salesforce Fields - we can have a google map searched and displayed on our Salesforce page. 

See the links below for more information,

http://wiki.developerforce.com/page/Apex_Callouts

http://wiki.developerforce.com/page/Apex_Web_Services_and_Callouts

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts.htm

 

Regards,

Ashish

ashish_agarwal.ax1625ashish_agarwal.ax1625

Hi letsbeahuman,

 

In salesforce callouts are used to make request from salesforce to outside fo salesforce.

 

You can understand it like you want to call a webservice for example facebook, then you have to make a callout.

 

To make a callout you  have to create a connected app in which you have to specify the endpoint where you want to request. This endpoint is the url of the request.