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

learn more… | top users | synonyms

0
votes
0answers
11 views

Real time Data -Polling service Vs Outbound Messeges [on hold]

We have full sandbox environment.We are integrating information from SQL SERVER-SFDC.Then We need to Perform real time integration of Forecast on it. As I understand it,there are 2 options here: ...
0
votes
0answers
17 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
18 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 ...
1
vote
0answers
22 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
75 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
22 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
24 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
22 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
28 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
33 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
33 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
12 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
15 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
58 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
14 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
36 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
42 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
21 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
15 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
37 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
35 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
43 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
20 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 ...
1
vote
2answers
34 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
49 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 ...
0
votes
0answers
23 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
55 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
25 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
35 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
22 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 ...
2
votes
1answer
636 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
33 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 ...
0
votes
0answers
58 views

Test Class for @Future Http POST Callout

I'm having trouble creating a test class for my Future Http POST class. The code works and I'm able to parse the response and update the lead, but I need code coverage. I've looked at the Salesforce ...
0
votes
0answers
32 views

Help testing a web service callout for a trigger that doesn't directly request a callout

I'm attempting to include a mock web service callout in a test for a trigger, though the trigger and test don't explicitly execute a callout. I've found this documentation on creating the mock, but ...
1
vote
0answers
31 views

SMS messages not sending using webservices in visualforce page?

Hi i m tring to send sms using webservices through visualforce page. but i m not getting any message these two are my wsdl apex classes: public class wwwWebservicexNet2 { public class ...
0
votes
1answer
72 views

How to write test class for http callouts?

Hi I am writing test class for callouts class any one help on this. This is my code: public class recoverrecords{ public static string response; public static list<string> first = new ...
2
votes
3answers
65 views

Both Apex Flex Queue and Scheduled Jobs used up

The system has batch call out APEX classes to sync Salesforce information with another Email sending provider, Active Campaign. Every time we insert or update a custom lead or custom opportunity, the ...
1
vote
1answer
22 views

testing future with callout from schedulable class

I'm definitely missing something. How do I test Schedulable class with a future method that does a callout?I have 100% code coverage of the Schedulable class but 0% of my service.The test fails as no ...
0
votes
1answer
58 views

Help with Test Code coverage on APEX Callout

attempting to develop a REST API connection to consume a webhook from Lesson.ly. Have the data writing into our Org and now attempting to get code coverage around the class to deploy, but need help ...
0
votes
0answers
25 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
35 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
27 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
28 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
31 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
1answer
27 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
37 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
70 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
19 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
38 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
17 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 ...