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

learn more… | top users | synonyms

0
votes
0answers
21 views

Efficient bulkification of callouts

I have a requirement to update a property at the geolocation of an account record. Decided that triggers or any synchronous apex isn't the way to go forward primarily due to governor limits. I would ...
1
vote
1answer
14 views

Issue with Schedulable implementation and Callout

I am receiving an error message when trying to test a class that implements Schedulable. System.CalloutException: Callout from scheduled Apex not supported. People have suggested using the @future ...
2
votes
0answers
11 views

Callout loop not allowed error while calling external service from an apex rest resource - SKUID

I want to fetch VIN details from an external webservice by callouts, this should be fired from SKUID page once user given input on the required field. From Skuid i am calling apex class which is ...
1
vote
1answer
23 views

Callouts Bulkification in triggers

When an account is saved(update or insert) - I want to take its address and then find out the corresponding latitude and longitude from the google maps geocoding api and then save the latitude and ...
1
vote
1answer
17 views

Include the -u CURL parameter in HTTP Request in apex

I want to make a request from salesforce to a CURL definition like this: curl https://sandbox-api.openpay.mx/v1/mzdtln0bmtms6o3kck8f/customers/ag4nktpdzebjiye1tlze/charges \ -u ...
0
votes
0answers
20 views

SOAP API Salesforce Login - Attempt to de-reference a null object

What I'm trying to do, is have a User Login and be redirected to a non-Salesforce page. Currently, I am attempting to do this via SOAP as I can't find another way to do it? I am getting a "Attempt ...
0
votes
0answers
25 views

WebServiceCallout exception

I'm trying to call an external web service from my org. I have to use a user name and password to retrieve the information. I have created a named credential with my path, user and pass, but when I ...
1
vote
2answers
48 views

SendEmail error: You have uncommitted work pending

My code works everywhere except in a particular client sandbox. It basically sends an email on insert of a record. Pseudo-code in PKG A trigger on after-insert of recordX ...
0
votes
0answers
8 views

How to call a google custom search web service from trigger and parse the response to save in my sObject

I am getting a Search query to my Email which is saved to custom object.Now on insert of this object, I want my trigger to make callout to google webservice and parse incoming response which will be ...
1
vote
2answers
31 views

Any issue if too many future calls are set

I am sending email from my apex code using sendgrid API and after every call I am updating a flag in my object marking that email is sent. I am doing DML after every callout because somehow any error ...
0
votes
0answers
12 views

Certificate error when calling webservice from an external system

I get a certificate error when Salesforce calls an external webservice. Below, the error : System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative ...
4
votes
1answer
41 views

A callout pattern idea

I just came up with the following pattern for making callouts. It's loosely based on Dan Appleman's Scheduler pattern. Has anyone out there has used or dismissed this? Why did you dismiss it? ...
0
votes
1answer
12 views

Need design help - weservice Real Time import of data to Salesforce and export as excel

Need to build export to excel functionality on salesforce but the tricky and imoortant part is that data resides in some other cloud system not salesforce. I have nearly 1 Million records in the ...
0
votes
0answers
19 views

Schedueled Data Sync between salesforce and external server

I am trying to do a data sync between my salesforce instance and an external server every 6 hours, I tried with a batch class that runs at that interval but it is complaining that you can't do future ...
3
votes
1answer
45 views

Strange new bug\feature in Salesforce: new undocumented IP addresses are used each time callout is made: how to cope with this?

I have implemented some logic to reconnect sandboxes through s2s connection after sandbox refresh and use self callouts for that, but apparently something has been changed in Salesforce recently which ...
0
votes
1answer
35 views

How to resolve system call out exception

I am new to webservice task . I am getting an exception like System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: Internal Error faultcode=env:Client ...
0
votes
0answers
31 views

Test class for scheduled http callout batch

I am having a bit of difficulty creating a proper test class for the two batch classes I have below: global class CarrierTrackingBatch implements Database.Batchable<sObject>, ...
0
votes
1answer
14 views

Apex Batch Reduce Callout Process Time

From batch class we are able to connect to third party API 5times per second on an average, i am wondering is there any way to increase the callouts per second. I am sure there may be chances
3
votes
1answer
113 views

How to bulkify a trigger that is having a method to call a future method?

I am having a trigger on Case object. The objective of the trigger is to create a Service Notification record in SAP. As the best practices suggest that we need to bulkify the trigger to avoid ...
1
vote
1answer
42 views

Code coverage of apex callout/test class [closed]

I am trying to cover the mentioned callout but I am able to achieve 59%. I am unable to cover first method ie getMoog and all the if statements. I know there are lots of errors in my code as I am ...
1
vote
1answer
35 views

Getting System.CalloutException: You have uncommitted work pending. Please commit or rollback exception even after @future call

I have done following things and i don't think i should get his Exception - 1) Logger.debug(LoggingLevel.INFO, 'Custom Message'); - A custom logger class 2) after above logger a call out to other ...
-1
votes
1answer
34 views

Is the 20 concurrent callout to external system going to be a practical issue for me? [closed]

I saw 20 concurrent callouts limit to external to salesforce org. In our organization we are using direct callout for order placement to on-prem system. Does that mean our salesforce application will ...
0
votes
1answer
24 views

regarding triggers and callout

I have a trigger in account and based on billingcountry I need to make callout to SAP. I have but acNew.Billicountry=='US' and is working fine. If opportunity uses account which has billingcountry ...
1
vote
1answer
33 views

Getting System.CalloutException: You have uncommitted work pending [closed]

I am getting an exception of System.CalloutException: You have uncommitted work pending. Detail of the Exception is given Below: Exception: :System.CalloutException: You have uncommitted work ...
1
vote
0answers
43 views

Methods defined as TestMethod do not support Web service callouts

i'm not using any web services then also error occur in test class. Please help for this : Apex Class : public class RequestPricingController{ public String oppId{get;set;} public Opportunity ...
3
votes
1answer
59 views

NO DML after Test.Start() but still getting System.CalloutException: You have uncommitted work pending

Basically, I'm getting the dreaded "System.CalloutException: You have uncommitted work pending." exception even though I'm 99.999% sure I'm not making any DML statements after running ...
3
votes
1answer
60 views

Call out to an external SOAP Webservice

I am trying to learn SOAP integration and have been following the online resource so far. https://developer.salesforce.com/page/Apex_Web_Services_and_Callouts My objective is to consume a publicly ...
1
vote
1answer
73 views

Test condition for Zuora failed credit card payment

I have a REST endpoint in Salesforce that accepts the following parameters: Salesforce account ID Billing address Product SKU Currency code Payment method ID (The customer is expected to create a ...
1
vote
0answers
16 views

Fire Validation Rule before making SOAP callout

On our Account object, we have a set of validation rules to maintain data quality. We also have created a custom VF page to override New button and call a custom function when the user clicks Save. ...
0
votes
1answer
32 views

Batch Job Callout You have uncommitted work pending. Please commit or rollback before calling out

I'm getting You have uncommitted work pending. Please commit or rollback before calling out global class BatchTransactionSurvey implements ...
1
vote
1answer
58 views

Uploading files to Amazon S3 from a trigger

I get files from an external webservice and have to upload them to Amazon S3 via apex. I found the unmanaged package Force.com for Amazon Web Services a.k.a Amazon toolkit, but it looks rather ...
1
vote
1answer
57 views

Why aren't iterators in batch jobs lazy-loaded?

I have a batch job that needs to callout to an external web service and retrieve a variable number of records. Seems like a perfect use-case to have an iterator which performs the callouts until there ...
1
vote
0answers
13 views

Apex CALLOUT_REQUEST is failing with System.CalloutException: Read timed out [duplicate]

Our endpoint is an https request. |CALLOUT_REQUEST|[217]|System.HttpRequest[Endpoint=https:[intentionally left off] The logs show: |EXCEPTION_THROWN|[217]|System.CalloutException: Read ...
2
votes
1answer
49 views

metadata api : INVALID_SESSION_ID:

To update a picklist value I'm referring to the metadataclass.cls I'm calling a class method (as like in metadadataclass example) to update the picklist value via a trigger (class method set to ...
1
vote
0answers
30 views

Asychronous call to wordpress using HTTP callout failing due to timeout

Timeout error with Asychronous HTTP callout to wordpress site I am trying to make an asynchronous call to a wordpress site using HTTP callout method( using @Future). Everything works on sandbox and I ...
0
votes
1answer
26 views

Common Name in CA-Signed Certificate

I've been trying to make SOAP call to an external web service. But I got “System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names present”error and ...
1
vote
1answer
51 views

Http callout test class “uncommitted work pending” error with no clear cause

We have method EnrollmentUtil.createNewEnrollment which contains a http callout on create of custom object Enrolment__c, and a test class to test this method. I'm trying to figure out how this class ...
0
votes
2answers
124 views

Action Function Javascript Page Rerendering

I'm trying call this: <apex:actionFunction name="doCallout" action="{!callout}" /> From javascript like this: <script> window.onload=function() { doCallout(); } </script> ...
2
votes
0answers
44 views

No longer receiving “String length exceeds maximum” in SOAP Callouts

We have a .NET SOAP web service called by an Apex class that returns very large strings. The class used to occasionally throw the error: "String length exceeds maximum". I just realized it isn't ...
1
vote
2answers
36 views

Proper Test class for opportunity creation required

The following is my trigger for Account,Based on which opportunity should be created trigger CreateNewOpportunity on Account (after insert, after update) { List<Opportunity> opportunities1 = ...
6
votes
1answer
875 views

Methods defined as TestMethod do not support Web service callouts - Causing tests to fail instead of skipped - Began 10-21-2015

Starting recently we are now getting this error during tests: Methods defined as TestMethod do not support Web service callouts Rather than saying "Test Method Skipped" they are failing and ...
1
vote
0answers
17 views

Get list of Concurrent processes in Execution

We are getting "Concurrent Requests Limit Exceeded." in our production org . Some transactions in our ORG require to much time as they involve callouts to external systems. Thus taking more than 5 ...
1
vote
1answer
217 views

System.CalloutException: Callout from scheduled Apex not supported. Any suggestions please

i have created a schedulable class which has to trigger a batch job. The run method for the batch class will get list of data to process from a webservice callout. Now, i got the exception below. Any ...
1
vote
1answer
48 views

405 response code when trying to callout to Google

Here is my code for callout. Http http = new Http(); HttpRequest req = new HttpRequest(); HttpResponse res = new HttpResponse(); ...
11
votes
2answers
805 views

System.CalloutException: Unable to tunnel through proxy (Winter '16 issue)

This morning I'm seeing sporadic failures across the board for our various integrations in production. When using HTTPRequest callouts, a System.CalloutException is being thrown with the following ...
2
votes
1answer
123 views

“System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names present”

I'm facing “System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names present” error when I try to make a callout to an external webservice. Problem ...
0
votes
1answer
61 views

Error invoking web service callout from button

I am invoking a web service callout from a buttons below: {!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")} ...
0
votes
1answer
34 views

PKIX path building failed for GeoTrust Global CA

I have a website with a valid and trusted certificate that I'm connecting to. The root certificate authority GeoTrust Global CA is listed on Salesforce's list of outbound messaging CA's. However, I'm ...
2
votes
1answer
23 views

Number of Execution Contexts during Callouts

I am trying to understand how execution context works with respect to callouts. Use case : Whenever an Account's status is updated to "Ready for Integration", a REST callout will happen towards an ...
1
vote
0answers
69 views

Handling Asynchronous Responses from Box.com

I'm using the Box Toolkit for Salesforce. As you know, in Apex I have to make asynchronous calls to Box. My problem is that sometimes when am performing multiple operation, such as creating a ...