Syntax for Future method in Salesforce

Syntax for Future method:
public class className {

  @future
  public static void methodName() {
  
  }
  
}

Syntax for Future method with callout:
public class className {

  @future(callout=true)
  public static void methodName() {
  
  }
  
}

No comments:

Post a Comment