You need to sign in to do that
Don't have an account?
pragya Mishra 41
Facing issues while using Password as an authentication Protocol in “Named Credentials ” salesforce?
I am using Named Credential as an Identity Type and Password Authentication as an Authentication Protocol
I have checked all three check boxes:
Generate Authorization Header.
Allow Merge Fields in HTTP Header.
Allow Merge Fields in HTTP Body.
While I am trying to execute below code,facing issues:
HttpRequest req = new HttpRequest(); req.setEndpoint('callout:HTTP_Basic_Credential/services/data/v32.0');
req.setMethod('GET');
//sending request
HTTP_Basic_Credential is a name of mine Named Credential.
While I am setting Generate Authorization Header flag , I am receving below error:
[{"message":"INVALID_HEADER_TYPE","errorCode":"INVALID_AUTH_HEADER"}]
If flag is not set then getting :Session is expired.
I have checked all three check boxes:
Generate Authorization Header.
Allow Merge Fields in HTTP Header.
Allow Merge Fields in HTTP Body.
While I am trying to execute below code,facing issues:
HttpRequest req = new HttpRequest(); req.setEndpoint('callout:HTTP_Basic_Credential/services/data/v32.0');
req.setMethod('GET');
//sending request
HTTP_Basic_Credential is a name of mine Named Credential.
While I am setting Generate Authorization Header flag , I am receving below error:
[{"message":"INVALID_HEADER_TYPE","errorCode":"INVALID_AUTH_HEADER"}]
If flag is not set then getting :Session is expired.
https://niksdeveloper.com/salesforce/named-credentials-in-salesforce-with-example/