Activity Forums Salesforce® Discussions How to insert ID in the argument in Salesforce Future Method?

  • Anjali

    Member
    January 30, 2020 at 1:13 pm

    Hello Mohit,

    Here I am providing the syntax, you can understand with this:

    public class Future_Method_Test {@future
    public static void SomeFutureMethod(Id Name)

    {

    Account acc = [Select Id, Name, Phone from Account where Id= :Name];
    System.debug('Account' +acc);

    }
    }

  • MOHIT

    Member
    January 30, 2020 at 1:14 pm

    Thanks Anjali.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos