Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/18 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

Test Credentials in the Target Org

Now that external credential access tokens are populated, use the named credential in a callout in your sandbox or testing org to verify that it works as expected.

Be careful not to test credentials in your production environment.

In this Apex code, a named credential and an appended path specify the callout’s endpoint. The referenced named credential specifies the endpoint URL, and the external credential connected to the named credential specifies authentication settings.