You are here:
Invoke External Service Callouts Using Apex
You can call external service registrations natively from Apex. Make a callout to an
external service like the Apex Http Class without the need to
write boilerplate code. The registered services are strongly typed in Apex with the registration’s
schema as Apex types. These Apex types reflect your registered service’s specification, making the
Apex compiler do the heavy lifting for you.
- External Service Registrations in Apex
See how registered external service schema types map to Apex types under the namespaceExternalService. - Use Apex to Create a Callout to an External Service
Design and test the automation that sends a user’s information from Salesforce to the external employee banking system. Using the examples provided, create the variables for user phone numbers, and combine different phone numbers into one piece of data. Then use the external service action to create the user. - Asynchronous Callback Operations Using Apex
Use Apex to create, test, and monitor asynchronous callbacks. Callbacks are right for integrations that require potentially delayed responses of more than 120 seconds from an external source. For example, a mortgage application API, a shipping notification API, or a payment confirmation API. - View Apex Names in Apex Class Viewer
View all External Services auto-generated Apex classes in the Apex Class viewer in Setup.

