Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
129 views

Get all named credentials using connectAPI

I am trying to pull the namedcredentials using getNamedCredentials() method in apex but it's not working in anonymous window. This is the error I am getting. error: Method does not exist or incorrect ...
calo's user avatar
  • 55
0 votes
1 answer
60 views

Is populating external credentials from VF using connectAPI safe from security review?

I'm packaging the permissions, principals, namedcredentials and externalcredentials with the managed 2gp However I'm not packaging the external credential principal secret i.e. APIKey for the callout ...
ApexSam's user avatar
  • 57
1 vote
0 answers
60 views

Invoking a Per User Named Credential OAuth flow on click of a button

Here is my use Case. I am trying to connect Salesforce with another Salesforce org with Per User Identity Type. The Second Salesforce org is just to demonstrate that the process works and will ...
Aditya Sehgal's user avatar
2 votes
0 answers
693 views

How can I retrieve custom parameters from External Credentials with Apex?

I'm looking to retrieve some External Credential information in an Apex class, and so far I've been successful in retrieving everything except for the parameters associated with the credential's ...
AM-KA's user avatar
  • 33
1 vote
2 answers
403 views

Creating a Named Credential with Apex

Trying to programmatically create a Named Credential and getting odd errors when trying to run this code: ConnectApi.ConnectApiException: Provide only the developer name of the external credential. ...
nstuyvesant's user avatar
1 vote
0 answers
414 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 ...
David's user avatar
  • 33
1 vote
1 answer
419 views

Named Credentials create APIs missing Label and Name values?

I'm looking at these three pieces of documentation: The ConnectApi.NamedCredentials class and specifically the createCredentials method The ConnectApi.CredentialInput class that defines the argument ...
Keith C's user avatar
  • 137k