I have a third party REST API that needs to be called from Salesforce, using OAuth for authentication. Is this actually possible? If so, how? I really can't find anything useful on the web. For me, it seems that I would have to build this myself.


You can use the "named credential" feature http://help.salesforce.com/apex/HTViewHelpDoc?id=named_credentials_about.htm&language=en_US

With named credentials the Oauth2 authentication flow is handled automatically, you don't need to implement specific code for it.

  • I'm trying to get this to work. I have a client credential grant that is working elsewhere but I have absolutely no clue how to do this with a named credential. – Semmel Nov 22 '18 at 23:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.