Questions tagged [continuation]
Visualforce uses a Continuation callback pattern for handling asynchronous callouts to SOAP and REST web services
55 questions
-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....
2 votes
1 answer
830 views
Apex Continuation execution failed and did not start - LWC
I am trying to make a POST api callout from my LWC using Apex Continuation and followed similar code: example. I have created the respective Remote Site settings too. The error message I am getting is:...
0 votes
1 answer
453 views
Callout not happening from Continuations class(LWC)
I am trying to do a callout on a button click from my LWC comp using apex Continuations. In the debug log, I see no callout happened. But when I do the callout using setTimeout(), then its working ...
3 votes
1 answer
2k views
Refactoring Apex synchronous callout to asynchronous
I'm refactoring a Visualforce page, which currently gets data from a synchronous Apex callout, so that the callout will asynchronous. The Visualforce page downloads a .csv file with customer data in ...
1 vote
1 answer
773 views
Issue with testing callback of continuation - no method on provided controller type
I have an apex class that is using a chained continuation concept. My class functions fine and appears to be making all of the callouts as expected. Now I am trying to write my test class for code ...
1 vote
1 answer
346 views
Resume logic after long-running service sends Platform event
I want to orchestrate logic distributed in Salesforce and in an External system in a scalable way using Platform events. Functional requirements: User in Salesforce triggers logic (Apex, Flow,...) ...
0 votes
1 answer
359 views
Testing chained continuations
Im wondering if anyone has figured out a way to test chained continuations? I followed the documentation for how to essentially make two asynchronous callouts in a synchronous pattern. I can test the ...
0 votes
0 answers
289 views
Issue rewriting @future method to using continuation class
Formerly, I built a callout using the @future(callout=true) to make asynchronous callouts. @future(callout=true) public static void exportReport(){ // create request Http http = new ...
0 votes
1 answer
368 views
Getting Blank response when i return Array on continuation in Lightning component's Server side method
In my requirement, I have to make multiple callouts with the Lightning component's server-side page load method. So here I have created multiple HTTP request(i.e: 20) objects and bind each 3 in ...
0 votes
1 answer
471 views
continuation method return null from the continuation method it self instead of call back method return
public with sharing class ContinuationClass { // Action method @AuraEnabled(continuation=true cacheable=true) public static Object continuationCall() { // Create continuation. ...
0 votes
1 answer
387 views
Continuation not working for the endpoint which has Curly braces in it
I am using Continuation to make API calls from lightning component. And noticed that if endpoint contains Curly braces, callback method is not getting called and we get "Communication error, please ...
3 votes
1 answer
572 views
Callback method is not getting called in continuation object
I am getting invalid session Id when i try to perform callout using continuation api . If i remove continuation api code and perform a normal callout the the same code is working. Below is the code @...
-1 votes
1 answer
295 views
Continuous integration using REST api in vf page
I have been asked a question in continuous integration. First let me give some background. In continuous integration api call we can call 3 webservice urls at a time and process response in another ...
0 votes
1 answer
448 views
not able to access the variable values after using the continuation class
private class StateInfo { Account acc {get; set;} StateInfo(Account acc){ this.acc = acc; } Contact cont {get; set;} StateInfo(Account acc, ...
2 votes
1 answer
1k views
LWC Continuation SOAP API does not seem to be working
I`m trying to execute Continuation from LWC action. The thing is that I use it for SOAP API. It is a long-time running request, but I have to show a loading spinner until the response will be ...