Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Anujit Das's user avatar
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 ...
Matt Smith's user avatar
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 ...
SBB's user avatar
  • 173
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,...) ...
Robert Sösemann's user avatar
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 ...
Adarsh4sfdc's user avatar
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, ...
user905's user avatar
  • 261
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-...
m_konyk's user avatar
  • 566
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 ...
Juan Jardim's user avatar
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://...
R_Cham's user avatar
  • 49
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 ...
Matthew Souther's user avatar
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. ...
Deepak Agarwal's user avatar
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/...
Howdy Ranger's user avatar
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 - ...
Red Rick's user avatar
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 ...
wesaw's user avatar
  • 3,150
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 ...
Red Rick's user avatar
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].(...
vt89's user avatar
  • 725
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 ...
MnZ's user avatar
  • 3,256
2 votes
0 answers
632 views

Test class for Continuation Chaining

Has anyone ever done a test class for continuation chaining (Multiple Asynchronous Callouts)?
S..'s user avatar
  • 1,215
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 ...
GeorgeA's user avatar
  • 984
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 ...
aging hippie's user avatar
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 ...
zeev1079's user avatar
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 ...
Azeez's user avatar
  • 103
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 ...
Azeez's user avatar
  • 103
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 ...
user2174835's user avatar
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 ...
KcBrewRon's user avatar
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 ...
Dan's user avatar
  • 115
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 ...
mischczu's user avatar
  • 329