You need to sign in to do that
Don't have an account?
renaiah anamalla 6
what is the @future annotation? what is the use of @future annotation explain briefly
what is the @future annotation? what is the use of @future annotation explain briefly
@Future annotation tell a methods that it is a future method and run asynchronously in background.
Here is documentation
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_invoking_future_methods.htm
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_future.htm
http://blog.jeffdouglas.com/2013/04/04/why-the-force-com-future-annotation-should-die/
-Thanks
Ashlekh Gera
2. It has higher governor limits.
3. whenever you call a future method salesforce pushes the job to a queue and when system resources are available it executes the methods.
4. only primitive values can be passed to future method.
5. you can future annotation inside a trigger to make a callout.
6. future methods should be static.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_future.htm
Thanks
-Nag
Check the below links
http://amitsalesforce.blogspot.in/2015/02/future-methods-in-salesforce.html
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_future.htm
Regards,
Deepthi