Skip to content

Instantly share code, notes, and snippets.

@mpassovoy
Created February 11, 2019 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpassovoy/15adb5ff3c3b9e1d1e7cb93f014d2348 to your computer and use it in GitHub Desktop.
Save mpassovoy/15adb5ff3c3b9e1d1e7cb93f014d2348 to your computer and use it in GitHub Desktop.
Named Credential Callout Sample
HttpRequest req = new HttpRequest();
String callout = 'callout: ' + NAMED_CREDENTIAL_NAME + '/services/apexrest/REST_EndPoint';
req.setEndpoint(callout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment