function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Apex callout

Hi Salesforce Experts,


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







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,





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.