We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [continuation]

Visualforce uses a Continuation callback pattern for handling asynchronous callouts to SOAP and REST web services

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
14
votes
0answers
388 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/...
5
votes
0answers
372 views

Safari support for iframing a visualforce page

Background: I have an API I wish to use from within my managed package which occasionally results in long running callouts. In order to ensure my users don't encounter errors with the limits to long ...
5
votes
0answers
192 views

<apex:map> doesn't render when using continuation(asynchonous callout)

It seems like there's a bug rerendering an <apex:map> from asynchronous callout. On my sample page below I have two <apex:commandbutton> one executing an asynchronous callout(action="{!...
3
votes
0answers
901 views

Callback not called on Continuation Object

I am trying to invoke SOAP service using continuation. While I am able to successfully hit the service, my callback function is not called. Please help me know if there is any issue with it. Thanks ...
2
votes
0answers
478 views

Test class for Continuation Chaining

Has anyone ever done a test class for continuation chaining (Multiple Asynchronous Callouts)?
2
votes
0answers
725 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 ...
1
vote
1answer
148 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 ...
1
vote
1answer
134 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 ...
1
vote
0answers
59 views

Calling Salesforce Rest Webservice url from vf controller

Hi I am trying to make a rest callout from controller and I am not been able to get response . I am using apex continution callout pattern for this to make call async. This is controller class ...
1
vote
0answers
251 views

Callback method processResponse() not called if endpoint is an invalid website

I am using Apex Continuation which has 2 functions: startRequest() - the starting function processResponse() - the callback function. Problem processResponse() is being called OK either... when I ...
1
vote
0answers
242 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 ...
1
vote
1answer
113 views

Chaining Continuation call forImported wsdl

I have developed a VF page which needs to do 3 call outs to external system in a sequence. The wsdl has been shared for these web services. We have implemented the continuation pattern based for wsdl ...
0
votes
0answers
49 views

Continuation callback method is not invoked

The actual code is very big, I tried to simplify it as much as possible. The design is such we cannot call the continuation method directly. So looking for ways of invoking it. Many thanks! VF Page ...
0
votes
1answer
38 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, ...
0
votes
0answers
139 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://...
0
votes
0answers
116 views

Lightning continuation callout pattern does not respect user permissions

I am working on a lightning application that uses the lightning apex continuation callout pattern found at this link: https://developer.salesforce.com/blogs/2017/09/invoking-apex-continuations-...
0
votes
1answer
592 views

Continuation pattern and JavaScript Remoting - corrupted file in the response

My current solution is working with following logic: system is calling remote action from vf page in the method there is a HttpRequest, system is calling external system, is sending file which will ...
0
votes
0answers
54 views

Apex Continuations: what happens when user navigates from his session?

As Continuation only works from VisualForce, what happens when user navigates from that session? Does the users loose the process?