Using Named Credential to make a REST callout from Apex

6:49 AM

What are Named Credentials?

Named Credentials is a secure way to store external application credentials (username/password or secure tokens) when you make a callout to an external system from apex.

Create a named credential as below.We just create a username password credential, but keep in mind that named credentials support a variety of options including oAuth, AWS etc.