Skip to main content

Posts

Showing posts from 2018

Named Credentials for Apex Callout and Lightning Connect

A named credential specifies the URL of a callout endpoint and its required authentication parameters in one definition. To simplify the setup of authenticated callouts, specify a named credential as the callout endpoint. If you instead specify a URL as the callout endpoint, you must register that URL in your org’s remote site settings and handle the authentication yourself. For example, for an Apex callout, your code would need to handle authentication, which can be less secure and especially complicated for OAuth implementations. Salesforce manages all authentication for callouts that specify a named credential as the callout endpoint so that you don’t have to. You can also skip remote site settings, which are otherwise required for callouts to external sites, for the site defined in the named credential. Named credentials are supported in these types of callout definitions: Apex callouts External data sources of these types: Salesforce Connect: OData 2.0 Salesforce Con