Tuesday, January 28, 2014

Explain few considerations for @Future annotation in Apex

Explain few considerations for @Future annotation in Apex

Method must be static
Cannot return anything ( Only Void )
To test @future methods, you should use startTest and stopTest to make it synchromouse inside Test class.
Parameter to @future method can only be primitive or collection of primitive data type.
Cannot be used inside VF in Constructor, Set or Get methods.
@future 

No comments:

Post a Comment