As it is an asynchronous process, the sObject can change between the time you call the method and the time it executes. It may be possible that the argument will receive the older version and […]
How many future methods can be called from a single transaction?
We can invoke 50 future methods in a single transaction. Gopal DasHe is a technology evangelist, Salesforce trainer, blogger, and working as a Salesforce Technical Lead. After working in Java based project implementation, he jumped […]
Can we call the future from Batch apex?
No, we cannot call future methods from batch apex. As they operate in different way. Mixing these can lead to unexpected behaviour. Gopal DasHe is a technology evangelist, Salesforce trainer, blogger, and working as a […]
Future Methods – @future in salesforce Apex
A future method runs asynchronously in background. You can use future method if you have long-running operations(callouts to external Web services or any operation that runs in its own thread and time. Also you can […]