The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
27 views

Running Tests in Production WHILE Deploying to Production - Row Lock Error

In our test classes, we utilize testSetup methods that create and insert records in preparation for their use in the test methods of the class. I found today that if I'm running tests in Production ...
-1
votes
0answers
19 views

Summer'16 - Slow asynchronous transactions are experienced

After the summer'16 update I am experiencing very slow asynchronous call. The code remains the same and was working perfectly fine. But after update the asynchronous call is taking more time then the ...
0
votes
1answer
24 views

Why i cant invoke ASynchornous method before Callout?

i cannot invoke asynchornous method before Callout,how to resolve this issues? public class CalloutService { public void callout_test1() { CalloutService.doDML(); HttpResponse r = ...
2
votes
1answer
75 views

Do outbound messages block trigger?

Based on Triggers and Order of Execution document, it is unclear at which point outbound messages are executed: 10. Executes workflow rules. <..> 19. Commits all DML operations to the database. ...
0
votes
1answer
26 views

Asynchronous Apex Limits

I was recently trying to create a set<id> myset, and then perform around 600 .add('...id...') calls, and finally select some records based on myset values. When trying to execute it it was ...
0
votes
0answers
24 views

How can we chain Lightning component controller call outs to Apex controller

I want to chain lightning component controller methods based on results received from first to second callout. I tried multiple ways but without success 1. Continuation - possibly only for Vf pages ...
2
votes
1answer
29 views

Keep track of chained Queueable

I'd like to insert a lot of records. Chaining Queueable classes seems to be the way to go in my scenario, I am just wondering if the following is feasible: keep track of chained jobs - when first ...
2
votes
1answer
79 views

@future method vs Async callout

Some days ago I imported a WSDL into Salesforce and (different of some years ago) it created an Async class (and of course the sync class). So I decided to search on Google how to use this Async class....
1
vote
0answers
34 views

Calling an Apex Controller from Lightning Helper

I have a problem calling an Apex Controller from a Lightning Component Helper. I really don't know a way to call the Apex Controller in order to retrieve the data and continue the execution. I think ...
3
votes
2answers
98 views

Performing on-demand record updates in real-time, asynchronously

I am trying to understand how the real-time mode of the Rollup Helper app works behind the scenes. I am looking for ways this can be achieved with, not necessarily how the developers built this ...
3
votes
1answer
49 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 ...
1
vote
2answers
49 views

About using Test.startTest() / Test.stopTest() for batch execution testing purposes

just right now, while deploying some code from Sandbox environment to the Production one, I was noticing something strange within a test class that should have the aim to test a Batch class. I notice ...
0
votes
1answer
49 views

Testing multiple asynchronous processes

I have a test that for it's data setup I need to fire multiple asynchronous processes. I have a suspicion, that they do not finish sequentially one after another. I think Test.startTest()/Test....
7
votes
1answer
134 views

Implement Domain Event Pattern in Apex - can and should it be done?

In Domain Driven Design a single pattern is drawing a lot of attention to itself - Domain Events and Event Queues. (slide via http://de.slideshare.net/andysal/never-mind-the-bollocks-heres-the-...
2
votes
1answer
85 views

The future of Async Apex - everything Queueable?

I know that this is a somewhat opinion based question but there is definitely interest in the community in where the Roadmap goes. Do I get the blogs and communities and blogs right that we are ...
2
votes
1answer
148 views

Apex Batch Job not processing all batches

I have an apex batch job, to query all closed cases older than 13 months. I have implemented the Stateful interface to that I can accumulate all the rows over the several batches that will execute. ...
5
votes
2answers
63 views

How to mix getContentAsPDF calls with DML?

This critical update: PageReference getContent() and getContentAsPDF() Methods Treated as Callouts will be auto-activated in January 2016. We have some code that uses a queue of custom event ...
3
votes
1answer
168 views

Why does my ActionPoller wait for my batch process to be done before it polls?

I have a CommandButton that calls a method in the controller that starts an Apex batch processes. I have an ActionPoller that is supposed to get the current progress of the batch process and update ...
4
votes
2answers
321 views

Do asynchronous methods run in parallel?

The short question is - do future methods run in parallel, or sequentially? I am wondering if race is possible in Salesforce. Let's say We've got some singleton class S that we want to call from some ...
1
vote
0answers
114 views

Handling Asynchronous Responses from Box.com

I'm using the Box Toolkit for Salesforce. As you know, in Apex I have to make asynchronous calls to Box. My problem is that sometimes when am performing multiple operation, such as creating a folder,...
2
votes
1answer
214 views

Testing the ACTUAL batchable context in Database.Batchable methods?

I'm trying to mock Database.BatchableContext to make my unit tests more robust and to eliminate excess usage of Test.isRunningTest() running in production code. Few hacks are available like Json....
2
votes
1answer
243 views

Are aura:waiting and aura:doneWaiting component specific events?

Good afternoon everyone, I have a question regarding the use of the aura:waiting and aura:doneWaiting system events. I currently have two nested child components within a container component as you ...
1
vote
1answer
224 views

How to find out the Send Id and Batch Id of an Asynchronous TriggeredSend

Disclaimer: I'm new so I may not have the terminology down. I'm including links to the documentation on the Exact Target site regarding the APIs we are using. We are using Asynchronous Triggered ...
1
vote
1answer
75 views

Fuel Java SDK - Asynchronous Triggered Sends

Are asynchronous triggered send calls possible using Fuel Java SDK v1.0.3?
0
votes
1answer
49 views

Document upload parallel through Apex - Design review

I am doubtful whether I am going in the right direction. My requirement is to upload all the documents from Salesforce to my local storage space. I have a button that triggers the following function: ...
2
votes
1answer
668 views

Update VisualForce Page field after Apex future callout

Want to update a VisualForce Page once my @future Apex Callout is done. How can I update a VisualForcePage, once the Webservice callout is done? Could I somehow divide the SearchCRM method, so that it ...
0
votes
1answer
118 views

PHP Fuel SDK - Sending TriggeredSend Asynchronously

It does not appear that I can send an asynchronous TriggeredSend call to the system with the PHP SDK. Am I missing something? I can add Priority to the props which gets attached to the ...
1
vote
2answers
591 views

How to synchronize asynchronous Apex

There are different ways to offload long-running processes to asynchronous apex: we got future calls, scheduled Apex, batch Apex and, more recently, Queueable Apex. They are all good to launch "fire ...
1
vote
1answer
764 views

“Cannot execute the continuation for Web Service calls” error when using an Asynchronous Callout

Working through a quick example of using a Continuation to make an async web service callout produced the following error after pressing the apex:commandButton that called the action returning the ...
3
votes
3answers
2k 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 ...
0
votes
1answer
319 views

Governor Limits for Asynchronous Methods

I am aware that async apex methods have higher governor limits. Can someone let me know how "higher" the gov limits for a Async job is ..some kind of numbers or reference link would be great. If a ...
2
votes
1answer
264 views

Continuations (Async Web Services) in Spring 15 Sandbox

According to Spring 15 release notes, Continuations class should be available in Spring 15. I have a preview Sandbox (on CS21) but this feature does not appear to be enabled as the Apex does not ...
8
votes
1answer
1k views

Testing scheduled apex containing @future method?

I've seen plenty of posts and documentation on testing asynchronous apex in general, but what about code with multiple layers of asynchronous code? Specifically, I have a scheduled apex class which ...
4
votes
2answers
162 views

How can my code tell if it's inside a Queueable context?

To go with the new System.Queueable interface, I'm looking for the analogy of: System.isBatch() System.isFuture() System.isScheduled() Is there a System.isQueued() or something?
9
votes
2answers
3k views

Can Queueable solve “Future method cannot be called from a future or batch method”?

I have code that must be called as @future as it requires all the resources one can get. The only problem is that in 1% of the cases this code is called from a Batch and therefore fails with ...
0
votes
0answers
40 views

Asynchronous Authentication mechanism fuel api

I am planning to use the c# fuel sdk. I have a question about authentication. We have a application in the marketing cloud which we third part’s will use. So my question on authentication is as ...
25
votes
10answers
833 views

How can I cause side effects outside an execution context?

I've got a scenario that relies on the system's "automatic rollback" behaviour to undo any DML, emails, futures and so on, in the case of an error. Basically, by allowing code to throw an unhandled ...
3
votes
1answer
203 views

Using @future tag on Apex Webservice but code not executing asynchronously

With the winter '15 release over the weekend some mission critical code for us is now getting the infamous "Apex CPU time limit exceeded". It worked fine for the past 8 months until this release. (as ...
1
vote
1answer
120 views

FTP SSL documentation for Batch File Export (Bulk Async) Call is wrong. Can't get it to function

Output for a Batch File Export (Bulk Async) Call is Below is what we are finding in trying to make use of this: The documentation for enabling FTP SSL does not work. Documentation Link: http://...
6
votes
2answers
485 views

How to test @future methods with setup objects and avoid MIXED_DML_OPERATION

I’m in a situation where I have to use a future method to avoid MIXED_DML_OPERATION error. I have a trigger that runs after INSERT on USER and creates a custom object X. They are in 1:1 relation. ...
2
votes
1answer
278 views

Async Apex & Fault Tolerance

Trying to see if I can make Async Apex jobs fault tolerant; meaning if they fail can I implement some sort of retry logic? What would this retry mechanism look like and is there any documentation or ...
3
votes
1answer
132 views

Invocation of scheduled class : starts - schedules - completes without a trace. No debug log

I've got an Apex Class that implements System.Schedulable which I'm trying to run: public class Broker { //... public class Worker implements System.Schedulable { public void ...
4
votes
3answers
611 views

How to estimate how long a given batch will run?

Are there any reliable numbers, heuristics, experience reports to estimate (and display it to the triggering user) how long a given batch will run? Sure the time will mainly depend on the number of ...
3
votes
1answer
446 views

Can a DML retry solve UNABLE_TO_LOCK_ROW race conditions?

I have 2 Batch classes working on different child objects of a common master object. Batch Batches are started parallel to speed up this long running cleansing operation. It depends on the underlying ...
1
vote
1answer
504 views

System.AsyncException: No enclosing class for method: methodName

I have this error that says "System.AsyncException: No enclosing class for method: methodName". The code structure : trigger trgSendRecords on DataSetup__c (after insert) { /* SOME BUSINESS ...
1
vote
1answer
633 views

Asynchronous Calls: Order Of Execution In A Test Method

Imagine the following scenario: Trigger myTrigger on User calls a future method which flags Account records. Then a Batch Job must run to process the records. While testing, I am first inserting ...
7
votes
2answers
2k views

What does the Batch Apex “Holding” status mean and where is it documented?

I've seen the following values in the AsyncApexJob table during the 'cradle to grave' life cycle of a Batch Apex job: BEFORE running: Queued Preparing WHILE running: Processing AFTER running: ...
3
votes
1answer
804 views

How can I get the details of last schedulable job and of which class? Is there any way?

I have a requiurement where I have to get the details of last job details and the Of which clas s. How can I get the details ? i have tried using CronJob details and CronTrigger?
7
votes
1answer
748 views

Do triggers run asynchronously when triggered by DML in apex?

The question is fairly self-explanatory, but to add a little background, here's the scenario that has made me ask. First a (very basic) SSCCE: public void createAttachments(List<Account> ...
4
votes
1answer
703 views

How can I synchronize processing in Apex?

I have a custom Object TaskEvent with an Event Type and a Task ID Throughout the life-cycle of the task I will receive events such as Start Event Routing Event End Event I receive a web request ...