Questions tagged [externalcredentials]
The externalcredentials tag has no usage guidance.
18
questions
1
vote
0
answers
39
views
How to properly write custom header formula in External Credential?
I need to make callout to the Hotel Beds api. For an authentication headers I used External Credentials custom headers.
But it is not properly creates headers(I guess).
Hotel Beds requires following:
...
1
vote
0
answers
37
views
Dynamically selecting external credentials with Named Credentials
We have a button that integrates with an external system using Named Credentials. We are using per-user authentication here and every user authenticates themselves with their external system username ...
0
votes
0
answers
97
views
External Credentials not making oauth call
I am attempting to implement the Named Credential/External Credential system following this post and am getting "System.CalloutException: Unable to fetch the OAuth token." error. Everything ...
0
votes
0
answers
59
views
Named Credential with Basic Authorization Token, Username and Password details
I am trying to callout to an external application APIs to fetch data into Salesforce.
That external application has Auth token URL which will need below details to share Access token (bearer) to be ...
0
votes
1
answer
25
views
Can We Dynamically Create Accept Header In External Credentials
We have an External Service which uses different accept headers based on the operation such as:
Operation1 - application/op1+json
Operation2 - application/op2+json
Operation3 - application/op3+json
...
0
votes
0
answers
35
views
Named Credential Auth 2.0 JWT Token giving empty error: "Unable to complete the JWT token exchange. Error: . Error description: ."
My JWT token is retrieved using only the following parameters in a json body:
{
"username":"blabla",
"password":"blabla"
}
I don't need the standard JWT ...
0
votes
0
answers
79
views
Callout named credential calls with a blob body
I am trying to launch a callout call to an OCR from an Apex method using a secured named credential with an external credential.
The HTTP request is a POST request with multipart body containing a ...
0
votes
0
answers
121
views
Programmatically edit authentication parameter of external credentials
I was wondering if updating an authentication parameter of an External Credential was possible from an Apex method.
The main goal of this function would be to programmatically store an access token ...
1
vote
0
answers
159
views
ConnectApi.NamedCredentials.deleteCredential not doing anything
I am working with the ConnectApi namespace NamedCredentials class to create and delete Named/External credentials programatically.
Creation was easy enough but now I am struggling to delete. I am ...
7
votes
1
answer
2k
views
External + Named Credential with oAuth client credentials flow
Given: a REST API that requires authorization. The authorization service attached to the API supports oAuth, one of the available oAuth flows is Client Credentials (grant_type=client_credentials)
...
0
votes
0
answers
81
views
Rotating External Credential Principal
I am looking to call an external API from Salesforce using AWS Signature v4. The external API is using AWS API Gateway with IAM authorization enabled. I have created an access key for an IAM user and ...
0
votes
1
answer
458
views
External Credential's 'Principal' not allowing multiple parameters
I'm trying to use Named Credential to authenticate to an external API.
I'm storing the credentials(token and api-key) under 'Principals' in External Credential.
But I noticed that when I'm adding ...
0
votes
1
answer
297
views
Salesforce External Credentials Custom Body
I was configuring external credentials in Salesforce, but I noticed, there's no Custom Body on it, is there any way to add it using OAuth 2.0 Authentication Protocol? I'm only seeing Custom Headers ...
0
votes
1
answer
628
views
Using named/external credentials in an Apex trigger
Context:
I have an Apex trigger for 'after insert' on EmailMessage.
The trigger invokes a future method containing a callout i.e. @future(callout=true)
This callout is a named credential which uses ...
1
vote
1
answer
408
views
How to configure Salesforce to Salesforce integration using the the JWT Bearer Flow with a certificate via an External Credential?
I'm trying (and failing) to set up a connection between 2 Salesforce orgs.
This AITechone video How to configure Named credentials in salesforce to connect 2 Salesforce Org ? explains how to use a ...
0
votes
0
answers
62
views
External Credentials with Per User
I'm currently migrating Legacy Named Credentials to External Credentials and for one of those I need to use Per-User. I assigned it to one of the Permission Sets. But I don't see how User can ...
1
vote
0
answers
36
views
Making a callout with new Named Credentials gives an error [duplicate]
Making a callout with new Named Credentials + External Credentials gives an error
System.CalloutException: We couldn't access the credential(s). You might not have the required permissions, or the ...
1
vote
1
answer
390
views
External Credentials in git
I have set up a Named Credential with a linked External Credential following the instructions here
The External Credential has a linked Permission Set with 2 Authentication Parameters, username and ...