i have a use case where Some code has been written in salesforce and Third party wants to call it.They are calling using rest like this.


Can i use Named credentials in this scenario.

1 Answer 1


Named Credentials are only relevant for calls made from Salesforce to either Salesforce itself or some other platform. They cannot be used by outside callers into Salesforce.

When calling in to Salesforce from a third party, OAuth authentication is required unless you choose to expose an Apex REST service to the unauthenticated world via a Force.com Site. Naturally, doing so has significant security implications.

If the third party system is a different Salesforce instance, you can create a Named Credential in that instance and authenticate it via OAuth.


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.