"HTTP Callouts" connect to a remote web server from Apex code.

learn more… | top users | synonyms

4
votes
1answer
161 views

Sandbox org TLS 1.1 update breaks outbound calls

This morning, our team arrived to find our sandbox instance in disarray. Salesforce had disabled TLS 1.0 across the entire instance, breaking our homegrown applications that communicate with it via ...
3
votes
3answers
47 views

How to insert records based on data from callouts, in a loop

Hello Salesforce community, I have a problem with Callouts and Commits in APEX: Error is: "You have uncommitted work pending." Fact in Salesforce: You can't do a callout when you have ...
0
votes
0answers
19 views

What could be the root cause for “External server did not return any content” issue when doing a callout from salesforce to external system? [closed]

Getting below exception on doing a callout from Salesforce to external system:- Bad Request: Error 400 – Please contact your System Administrator.,,,FOr EXPERIAN IO Exception: External server did ...
0
votes
1answer
24 views

Why i cant invoke ASynchornous method before Callout?

i cannot invoke asynchornous method before Callout,how to resolve this issues? public class CalloutService { public void callout_test1() { CalloutService.doDML(); HttpResponse r = ...
1
vote
1answer
24 views

Where to store endpoint while making REST callout

When should one use Named Credentials and when Remote site settings for making REST callouts from salesforce ? Is it fine to store clientId and clientSecret in custom labels ? When using remote site ...
0
votes
0answers
34 views

SOAP service callout with a certificate - External server did not return any content

I have a SOAP service certificate that I added to Salesforce and created a Named Credential with it. I generated classes from WSDL, and I replaced the endpoint_x with: public String endpoint_x = '...
0
votes
0answers
12 views

Batch process with external API calls progressively consumes more CPU time

I have a batch process that calls an external API, updates fields on Contact and Account records, and creates a new record on a custom object. For some reason, CPU timeout occurs after the first 30 ...
0
votes
1answer
26 views

SOAP Request: Apex Callout error: System.CalloutException: Not in GZIP format

I am sending the following and getting a "Not in GZIP format" error? I think it might be because I am sending Basic Auth when the external web service need just the login credentials you can see in ...
2
votes
3answers
149 views

System.CalloutException: You have uncommitted work pending during Test for callout in @future method

SOLUTION An object has workflow rule that sends an email and it was not mocked EDIT I am simply trying to test future method that invokes SOAP service, but I get an exception. EDIT 2 I have @...
0
votes
2answers
35 views

Calling GA Measurement Protocol API from Apex

I am making a call to Google Analytics from salesforce. I am getting an error stating that the parameter 'v' is not being sent. This is included in the json body. If I use a third party script like ...
1
vote
0answers
27 views

Apex Callout - Need help sending AuthenticationHeader. Request Error. Invalid Login

I am trying to send account record information to an external web service. I have created an Apex Class from WSDL. Right now when I pass the request I am not sending authenticationHeader details. In ...
0
votes
1answer
28 views

Does Salesforce support callout using Kerberos authentication? [closed]

Does Salesforce callout using Kerberos authentication? I cannot find any supporting documentation saying it does. Thanks in advance.
2
votes
0answers
36 views

Box.com creating folder for record failing

i'm encountering a wierd behavior in my box.com integration for salesforce. Here's the code. @future (callout=true) public static void createFolder(Id id) { //Instantiate the Toolkit object ...
2
votes
1answer
42 views

Salesforce Javascript CORS rules

Is there a good summary of where from Salesforce allow and does not allow calling out to 3rd party REST API's (assume header Access-Control-Allow-Origin: *). Possible scenarios I can imagine: ...
1
vote
1answer
48 views

Trigger to use HTTP callout and update record with the results

I have been trying to integrate Google Shortener API into my salesforce org. I wrote a class to make the call out, but am having difficulty bringing the value back into the record. I have a custom ...
2
votes
2answers
67 views

Working around callout limit in Batch Apex

I have a batch Apex class that makes a callout to an API that returns records in pages of 25. It also tells me how many pages there are so essentially I do - so I have a loop that then goes through ...
0
votes
1answer
84 views

Error: Unrecognized base64 character

Hey I am trying to get the access token to GA from Salesforce but following the execution it gives me the following error: System.StringException: Unrecognized base64 character: - This is the ...
1
vote
0answers
29 views

JSON Post via Apex - PKIX path Building Failed - What am I doing wrong?

This is my first time attempting a JSON POST and I trust your collective judgement. I would appreciate if someone could tell me if I am approaching this correctly or not. I didn't receive any compile ...
2
votes
1answer
79 views

@future method vs Async callout

Some days ago I imported a WSDL into Salesforce and (different of some years ago) it created an Async class (and of course the sync class). So I decided to search on Google how to use this Async class....
0
votes
1answer
49 views

HTTP Callout from Salesforce to Google Analytics [duplicate]

I want to get some of the data from Google Analytics into Salesforce. I have looked through a series of articles but I couldn't find any step by step guide how to do so, hence I am unsure what ...
0
votes
0answers
19 views

Strange error with number field with callout

We have a utility class that generate the request xml for HTTP callout. I am calling this utility class from a batch class and from controller. Now the strange thing is that, when I call it from ...
2
votes
1answer
62 views

Lightning components and Continuations

I have a need to design components that are capable of performing a lot of simultaneous callouts. Platform limit is 20 per host. Continuations are great way to avoid this limit. Problem is, as per ...
3
votes
1answer
110 views

DML update in @future callout not updating sObject

I've got a Apex class that takes the data from an Account object and uses it to create an account in my company's database by hitting an API. The API accepts JSON then inserts all the appropriate ...
0
votes
0answers
32 views

Why 'Methods defined as TestMethod do not support Web service callouts' error?

I have simple trigger that changes value of one field based on value of other field. Following is test class for that Trigger @isTest public class SMS_OPT_OUT_TC{ static testmethod void ...
2
votes
1answer
28 views

Simulate timeout for a callout?

Alright, I have a HTTP callout that every once in a while would timeout, even with the max timeout set. So to combat this, I have a try, catch, try, catch block to make the call out a second time if ...
1
vote
2answers
25 views

How to make callout from a batch class without Statuscode 500

I have a batch class which basically does a soql of to get a list of account records. In the execute, i want to get the list returned and pass them to a Http callout function which will do a Post ...
1
vote
0answers
61 views

ConcurrentPerOrgApex Limit exceeded

We are calling Queueable Interface from trigger to make multiple callouts to external systems. The number of callout from Queueable class is 50 as the other system can process only one record at a ...
1
vote
2answers
39 views

Test on WSDL2APEX classes

After modifying the WSDL file to remove all the tags, I successfully generated the Apex classes depending on the WSDL. However, now, as a beginner, I really do not know how to test if the classes are ...
2
votes
2answers
46 views

First Time WSDL2Apex : Trying to Reference WSDL Class but receiving Compile Error: Method does not exist or incorrect signature

This is my first time using WSDL2Apex, or attempting a Callout to a 3rd party API, so please bare with me. Implementation Goal: Contract is a child-object of Quote. When a new Contract record is ...
0
votes
0answers
18 views

audio file transcription

I am looking for a solution (salesforce app or cloud service) that i can call from my salesforce instance to have auto files (mp3) transcribed to a text file. I obtain audio recording from my ...
0
votes
1answer
16 views

Long Response Time

we have the integrations calling from salesforce to 1 system to 2 system. We wanted to check to if we could get some tool where we can measure the times from salesforce to 1 system only. Is there ...
3
votes
2answers
64 views

What's the uncommitted work on this callout test?

I'm gettin You have uncommitted work pending. Please commit or rollback before calling out.. Exception while Running a Test of the class i will attach. This class is invoked by onTask Trigger (...
1
vote
1answer
17 views

Getting System.CalloutException: despite of DML been excecuted after call out, only in prod not in sandbox

I am getting the following error, and I find it pretty odd as 2 days ago I deployed and it worked fine, and my current deployment doesnt have anything to do with the class that is now failing. To make ...
0
votes
1answer
78 views

Lightning component immediate server action?

I have an application which depends on outbound calls to REST APIs to fetch data. Is there a way to enqueue and process actions right away? It seems like if I enqueue an action, it is not processed ...
2
votes
1answer
48 views

403 - Forbidden Cannot authenticate user

Not understanding why I am getting this error if I check this URL in Soap UI it is working perfectly. Getting this error after setting body 'Input is not valid JSON at character 1 of ' public static ...
0
votes
0answers
28 views

How to make REST Callouts from Visual Workflow?

We have a requirement where we need to accept some inputs (couple of text inputs) from user and pass this input to a REST Service which will return search results(List of a custom class) based on the ...
2
votes
1answer
20 views

batch fired callout only received response from last callout

So my batch will collect 843 records, for each batch, which is 200 records, i constructed a json and made the callout, so in total, it is 5 batches and 5 callouts. I have a server hosting my rest ...
1
vote
2answers
45 views

Unit Test on FeedItem Trigger that has callout throwing You have uncommitted work pending. Please commit or rollback before calling out

I am creating a unit test around a feed item trigger that is doing a callout. The code works as excepted, but when I do that unit test I am getting the exception You have uncommitted work pending. ...
1
vote
1answer
46 views

how to solve callout error? You have uncommitted work pending. Please commit or rollback before calling out

I have written inline Vf page to update the record value. The values are coming from a web service. While updating the record the detail page redirected to VF page. But the record was committed in the ...
2
votes
1answer
79 views

Where can i find the header information in a webservice callout request?

we are integrating Salesforce and SAP systems. For that we are making a callout to SAP with username and password in the header. When i checked the debug log the callout_request entry contains an xml ...
1
vote
1answer
21 views

Possible salesforce limitation when trying to have a web service callout

Good day everyone, I am trying to sync my salesforce data and php application data. I have read an article from jeff douglas in this link http://blog.jeffdouglas.com/2009/03/16/restful-web-service-...
1
vote
2answers
44 views

Salesforce-Trizetto Integration Issues

We are facing the below error while making call out, to Trizetto web service(GetGroup_GroupId) after generating classes by WSDL2Apex. “System.CalloutException: Web service callout failed: Unable ...
3
votes
1answer
114 views

Constructing SOAP Security Header for wsse:UserToken

I'm trying to callout from Apex to an Address Validation webservice that requires a SOAP <Security> header to be set. But I can't seem to get it right. From the WSDL: <s0:Policy s1:Id="...
0
votes
0answers
30 views

How to get private key for ca signed certificate generated in salesforce

We are integrating with our partners and making outbound call from salesforce. For this to happen we need to pass a CA signed certificate and its private key within call-out. I could find a doc on ...
1
vote
1answer
102 views

The requested URL could not be retrieved : 403 Error code

I am trying to access a SAP server : http://10.*.*.*:7110 I have already setup this URL in Remote setting. When I am trying with SOAP UI it is working fine that suggests End Point is valid. But, I ...
1
vote
0answers
37 views

Getting Forcetk to work - “GET Error net::ERR_FILE_NOT_FOUND” while using query

I am trying to create a simple Chrome extension plugin with forcetk to query on data. My manifest json { "manifest_version": 2, "name": "GTmetrix Analyzer Plugin", "description": "This ...
1
vote
0answers
36 views

Is this a fair bulkification of getContentasPDF?

I have to bulkify a handler which utilizes getContentasPDF method. Initially I was passing only single record id in the future method. Now I am passing set<Id> as parameter in savePDF which is a ...
0
votes
0answers
30 views

Callout inconsistency between Postman and Salesforce

I've got a callout that I'm doing that is receiving an HTML response. I've got this correctly rendering on my Visualforce Page via an outputText. However, I am not getting the right Body back. When ...
5
votes
1answer
2k views

Callouts to web services started failing with CalloutException: Server chose TLSv1

Today I started receiving the following exception when making callouts to external web services: System.CalloutException: IO Exception: Server chose TLSv1, but that protocol version is not enabled ...
1
vote
1answer
40 views

Salesforce storage solutions depending on business requirements

We have a business requirement to use cloud storage with Salesforce. Below are major requirements on the storage. The storage provides an independent way for people to browse the files stored in the ...