Outbound Integrations – REST
In the previous chapter, we discussed how we can build custom endpoints within Apex to allow external systems to make calls into Salesforce so that data can be handled and processed. Often as developers, we will have a requirement to make a callout to an external service via a REST API to retrieve data that is used as part of our processing. As an example, we may want to retrieve some address information based on a provided zip or postal code or retrieve the latest price of an item from a product information system.
In this chapter, we are going to cover how to make callouts to external services to both send and retrieve data, as well as the different security options and tools Salesforce provides to make it easier to make these callouts.
We will be covering the following topics:
- Basic REST callouts
- Remote site settings
- Authentication and named credentials
- Using certificates
- Testing
- OpenAPI and external services ...