Activity Forums Salesforce® Discussions When to use the Database.Stateful in Salesforce?

  • Deepak

    Member
    January 22, 2020 at 3:28 pm

    Hi Shweta,

    Database.Stateful is used when the execute method modifies a class variable in such a way that it is to be used across multiple execute methods or in the finish method.

    Hope it helps!

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos