The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
35 views

@future catch exception should be displayed in Vf Page

My code is public pagereference save(){ //some code for(integer i=0;i<10;i++){ futureprocess(strl,i); } return null; } @future(callout=true) public static void ...
3
votes
1answer
79 views

Can you run Batch Apex after a callout?

I have a callout that is scheduled every hour to import data. Upon finishing the import, I would like to call a Bach Class that works with the imported data. Right now, I get an error saying ...
2
votes
1answer
49 views

Heuristics to decide if to run an operation sychronous or asynchronous

Im our app we recently had to switch many operations from short running synchronous calls to asychronous Batch or future calls. It helps us overcome the many limits but also introduces many other ...
-1
votes
1answer
63 views

@future to reduce number of Soql Queries

Say Suppose I'm having 150 Records in a Custom object and I will display 100 records in a Vf page.When I select all the records and process then what happens is based on criteria,these fields will ...
9
votes
3answers
222 views

Knowing if a future call is allowed

I'm having an issue where we have some code that can be called anywhere and then it makes an @future call to log a message to an external system. The problem is if this method is called (either ...
3
votes
1answer
47 views

How to prevent inconsistent data when using @future methods in triggers?

Due to certain governor limits in my trigger I refactored it to work asynchronously with @future: public with sharing class CustomObject_TriggerHandler { public static void afterInsert(Map<Id, ...
11
votes
2answers
122 views

@Future at risk for race conditions?

Question If I invoke an @future method from a trigger that is performing a calculation based on data that is being committed in the trigger am I at a risk for a race condition? Background We're ...
2
votes
3answers
237 views

How far in the future are @future annotated methods executed?

What is the maximum estimated time before execution of an @future annotated method starts, after the call to the function is made? Is this in the order of seconds? Or can it take up to minutes before ...
2
votes
2answers
237 views

How can you avoid hitting 24-hour limits on emails and future calls?

I realize there are plenty of ways to try to avoid hitting limits in the first place, but when it comes to features with 24 hour limit plans, how can you know if you're getting close to them? And ...
8
votes
2answers
154 views

Use JSON serialization to get around parameter limitations for future methods?

Future methods can only take primitives or collections of primitives as parameters. To get around this you could serialize Sobjects (or classes) to a string and then deserialize them in the future ...
1
vote
3answers
232 views

Options for callouts from triggers

I need to make some callouts from code that initiates from a trigger. I realize that you can't do a callout directly from a trigger. Currently what I do is make a future call to code that then ...
11
votes
2answers
862 views

How can I determine how many future calls have been executed in 24 hours?

I just ran into a huge gotcha in Salesforce: the 24 hr limit on # of future calls - cf. http://www.sundoginteractive.com/index.php?/sunblog/posts/governor-limit-gotchas-part-1-the-future-call/. I ...
4
votes
3answers
185 views

Field Describes in a Trigger causing scalability problems

I have a trigger (simplified sample code below) that is using field describes to determine what fields were changed to conditionally update some other field on the same record. The problem is that ...
2
votes
2answers
152 views

Notify users of errors that occur in a future method

How can I notify users of errors that are encountered within a future method? Outside of a future method I'd usually resort to ApexPages.addMessage(), but this isn't possible without the browser ...
-1
votes
1answer
67 views

What areas/topics should one invest in learning/training? [closed]

I was granted/offered by our CEO that I can take a course (or other training on salesforce). This got me to think: WOW - there are so many fields/areas/topics in Salesforce, and as my knowledge as ...
7
votes
2answers
315 views

Batch Apex in AppExchange package and orgs with related triggers that call @Future methods

Here's the problem: when an org has a trigger that calls an @Future method, any batch Apex that fires that trigger will fail, since you cannot call an @Future method from an @Future method OR from ...