I need to call the same org using named credential password authentication,. Can anyone explain if i need to pass a api for the password where could I get that api for same salesforce org?
Named Credentials using password authentication
authenticationnamedcredentialspasswords
Related Topic
- [SalesForce] Using Named Credentials with OAuth 2.0 username & Password Authentication
- [SalesForce] UserName and Password in Request body of apex callout using Named Credentials
- [SalesForce] Using Named Credentials in OAuth 2 authentication (grant_type=password)
- [SalesForce] Named Credential shows Authentication Status Pending even after successful authentication
- Username/password JWT with Salesforce Named Credentials
Best Answer
As you are accessing the API from the same Salesforce org, you can use SessionId, which should be the recommended approach. However, if you still wish to use Connected App and named credentials please follow the below step: