What are Named Credentials?
Named Credentials were introduced by Salesforce in the Spring ’15 release. In this blog I will cover the basic functionalities of Named Credentials and why you should start using them today. The official description of named credentials in the Salesforce help is: A named credential specifies the URL of a callout endpoint and its required authentication parameters in one definition. Salesforce manages all the authentication for Apex callouts that specify a named credential as the callout endpoint, so that your code doesn’t have to. This means there are two major reasons to start using named credentials today: You no longer have to store your user credentials yourself anymore You no longer have to handle the authentication yourself anymore Let’s dive a little deeper into those two advantages. No longer store user credentials yourself Before named credentials were introduced, as a developer you had to store the user credenti...