Questions tagged [callout]
"HTTP Callouts" connect to a remote web server from Apex code.
1,329 questions
0 votes
0 answers
46 views
How to send request body in DELETE call?
I have an API that I am calling via External Services that accepts a request body in a DELETE endpoint. The call works fine in Postman, but when hitting it from Salesforce, I get this error: "...
-2 votes
1 answer
54 views
Is this possible to find out HTTP Callout timeout used and left out of 120 seconds by leveraging Apex method?
Is there any apex statement to find timeout used and left out of 120 seconds? I can't find any method in Limits apex class to return that. https://developer.salesforce.com/docs/atlas.en-us.apexref....
1 vote
1 answer
103 views
External Auth Identity Provider not refreshing access token with Google API
I'm using the new (as far as I can tell, as of Spring '25) system for creating Named Credentials for OAuth-based callouts. I'm trying to create an integration with Google's Drive API. I set up the ...
-1 votes
1 answer
81 views
Getting the error You have uncommitted work pending from Heroku callout
I have an SMS sending requirement, which involves a mix of DML and callouts. I know I can't do DML insert/update before a callout, and I can't do the callout first in my case. Explanation below: SMS ...
-1 votes
1 answer
78 views
Callouts from platform events
So I have a platform event for which I have created a trigger. I am trying to make a callout, but I am getting an error: System.CalloutException: Callout from triggers are currently not supported I ...
0 votes
0 answers
25 views
External Cretentials - not recognized in Apex Body Formula [duplicate]
Below is the code I am using to generate and Authorization Token. The code is working when I replace the variables using External Credentials values with hard coded values - clientId, clientSecret, ...
0 votes
0 answers
181 views
What's the purpose of associating named and external credentials with permission sets/profiles?
what's the purpose of connecting named credentials to profiles and permission sets? I know Salesforce introduced Integration User Licenses, but these seem to be for API Only users that's are setup for ...
1 vote
0 answers
64 views
Missing OAuth Scope Slack Handshake
I'm having an issue where I cannot approve my External Credential w/ Slack. Create External Credential w/ Authentication Protocol: OAuth 2.0 Scope: chat:write incoming-webhook Auth Flow: Browser ...
0 votes
1 answer
114 views
Salesforce standard api not accessible through apex callouts using userInfo.getSessionId
I am trying to create an object using a callout to salesforce standard api, even though the user has sufficient api permissions I get error 401 This session is not valid for use with the REST API. ...
0 votes
0 answers
53 views
Error while sending message to AWS SQS using Salesforce Apex and Named credentials
I'm trying to send a message from Salesforce to AWS SQS using Apex. However, I am encountering an error during the callout. Could someone help me figure out what I'm missing? ERROR: Status: Forbidden ...
1 vote
0 answers
288 views
Does "Relax IP Restrictions" in Connected App override profile-level IP restrictions for Client Credentials Flow?
I have created an External Client App and enabled it for the Client Credentials Flow. I have also assigned an admin user as the "Client Credential User." This user's profile has IP ...
0 votes
0 answers
84 views
Handling Dynamic Response Body in Flow Http Callout Action
Hi Im trying to send a POST request to an endpoint from a salesforce flow, but the response of the external endpoint comes in this format: { "1FDUF7GT7ABV74894": { "make":"...
0 votes
0 answers
49 views
How to limit usage of credentials to certain endpoints?
I have an api key for callouts to an external service which I have no control over and there is no concept of scopes. To successfully callout to the service the api key needs to go into a header with ...
1 vote
0 answers
168 views
Transform items from lower tiers in JSON response in flow
I have been using the Transform element to well... transform a json response into records. The field mapping and all makes sense. I have reviewed the documentation on this element and understand the ...
0 votes
0 answers
52 views
Salesforce external service callout from trigger: available method annotations if not @future(callout=true)?
i need to make an Apex callout from a trigger. I am asking if there are other method annotation options than @future(callout=true) to allow the trigger to run my callout method ? @AuraEnabled(...