All Questions
Tagged with continuation apex
27 questions
0
votes
1
answer
405
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
654
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
300
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
351
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
420
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, ...
1
vote
2
answers
2k
views
LWC Continuation Issue: Apex methods for continuation can not be invoked from a non-continuation action
I`m trying to call Continuation method from Apex that has
@AuraEnabled(continuation=true cacheable=true)
but getting next error:
Apex methods for continuation can not be invoked from a non-...
1
vote
1
answer
716
views
Apex Continuation method that call service method
We have a a service class where we use as repository/factory for specific external endpoint. One of those endpoint has a method which takes sometime and for that reason we get a timeout exception ...
2
votes
2
answers
1k
views
DML operations in the Apex callback method
An apex method that returns a continuation object can’t perform DML. The solution given by the Salesforce developer documentation is the “perform DML operations in the Apex callback method”.
https://...
1
vote
1
answer
2k
views
Aura Component + HttpCallout + Large File Response
Trying to figure out how best to build interfaces that retrieve external files between 1-10 MB and display them in the UI.
Right now I have a Lightning Aura Component that calls a web service via ...
0
votes
1
answer
1k
views
Callback method not getting called in Continuation Object
I am having a requirement where in i am doing asynchronous calls using REST API. I am using Continuation method to perform the asynchronous calls,but here the callback method is not getting called.
...
19
votes
3
answers
3k
views
Continuation Apex Unit Testing - Lightning
With Summer'19 release continuation is available in Lightning. To make long running callouts.
Continuation - Aura Dev Guide:
https://developer.salesforce.com/docs/atlas.en-us.220.0.lightning.meta/...
1
vote
1
answer
3k
views
Concurrent requests limit exceeded [duplicate]
anyone can help me to understand this limit: Number of synchronous concurrent requests for long-running requests that last longer than 5 seconds for each organization
For Example,
If the Apex Class - ...
0
votes
1
answer
500
views
Chaining Continuations - would each continuation be executed in separate transaction/limit scope?
When we are chaining Continuation objects in Apex controller, would it be right to assume that each continuation (and apex post processing method) is executed in separate transaction scope, e.g. I ...
6
votes
1
answer
2k
views
Alternatives for handling a Long Running Transaction
I have logic inside an Apex Class that will be invoked from a Lightning Component. There are three sequential callouts that will be sent to an External System whenever its method is Called.
As per ...
1
vote
1
answer
452
views
Continuation: Constructor not defined
I would do some example with Continuation and I'm using Apex code on Apex Developer Guide.
When I click to save my code I receive this error message:
Constructor not defined: [Continuation].(...
1
vote
1
answer
1k
views
Continuation obj null in setContinuationMethod
I'm currently working on covering code coverage for continuation pattern.
However, I receive an exception while testing. I have chained 3 webservices ie., service 1,2 and 3.
private static ...
2
votes
0
answers
632
views
Test class for Continuation Chaining
Has anyone ever done a test class for continuation chaining (Multiple Asynchronous Callouts)?
2
votes
1
answer
831
views
Asynchronous Callouts/Continuations in Embedded Visualforce
Is there any limitations or issues with using Continuations from an embedded visualforce page? I'm attempting to make an asynchronous callout to the Google Calendar API. I have the callout working ...
1
vote
0
answers
367
views
Get PageReference returned by callback of continuation, and navigate to it
I've spent many hours scouring the net and trying different coding options to get a very simple function accomplished, with no luck. There are no examples anywhere that I can find, and SF's ...
3
votes
1
answer
2k
views
Making an Asynchronous Callout from another class
I have a question regarding Making an Asynchronous Callout from an adapter class that I made in apex.
Description:
So i followed the Making an Asynchronous Callouts from imported WSDL guide from ...
3
votes
1
answer
1k
views
How to write test classes for Continuation Controller (using Async WSDL class)
I have implemented Continuation concept with the Asynchronous WSDL class, in a controller of page. So, I facing difficulties while writing test classes for the same.
For my requirement I have ...
2
votes
0
answers
1k
views
How to get the info on AsynCallouts made with Continuation framework(or Class)
I am using WSDL classes generated from the WSDL xml, to make the webservice callouts. I was making the callout synchronously, but later I want to change it to Asynchronous callouts. As we already know ...
6
votes
1
answer
2k
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
1
answer
2k
views
Concurrent Request Limit Exceeded - Possible Solutions
In the recent past we've replaced two very old s-control type and html mashups with visual force pages and web services. This changes along with a few other visual force pages built into our standard ...
5
votes
1
answer
2k
views
Continuation Error "Apex class 'ApexPage.ContinuationController' does not exist"
I am trying to use Continuation for the first time and am hitting a strange error. Below is a simple page I created with both a Synchronous Callout and a Continuation Callout button. When, in my ...
3
votes
4
answers
5k
views
Asynchronous Callout from an Imported WSDL
I developed VisualForce page with asynchronous callouts to web service according to link.
It is working fine, my page is showing results after callback is returned.
I really like pattern with ...