Managing outbound connections with Named Credentials

Named Credentials offer a secure means of managing credentials that are needed to access external endpoints when making outbound calls. This separation of concerns allows the calling logic to focus on the integration and not on how to store credentials and, thus, protected username/password or tokens for multiple users and/or external services. This also gives administrators more control and consistency in how all outbound connections are managed regardless of their usage.

If you do not define a Named Credential or a Remote Site setting for a given endpoint, Salesforce will block callouts and throw a runtime exception. This is by design and means that the administrator is ultimately in ...

Get Salesforce Lightning Platform Enterprise Architecture - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.