• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Salesforce by
Q:
What is Future Annotation(@Future)?

1 Answer

0 votes
by
Use the future annotation to specify that these methods that are executed asynchronously.

Methods with future annotation must be static methods

Methods with future annotation can only return a void type.

Syntax:

global class class_name

{

@future

Static void methodname(parameters)

 {

//body of the method

}

}

Related questions

0 votes
asked Sep 24, 2019 in Salesforce by Robin
0 votes
asked Sep 24, 2019 in Salesforce by Robin
...