Activity › Forums › Salesforce® Discussions › i want to count how many times execute method executed in Batch class? Tagged: Salesforce Apex, Salesforce SOQL Salesforce® Discussions i want to count how many times execute method executed in Batch class? Posted by Saurabh on April 26, 2017 at 1:16 PM How we achieve how many times execute method executed in Batch class? Manpreet replied 9 years, 1 month ago 2 Members · 1 Reply Salesforce ApexSalesforce SOQL 1 Reply Manpreet Member April 27, 2017 at 1:40 PM Hi Saurabh, Hi, the start method excutes once, at the begining. For the execute method, it depends on you. You can launch it through an Apex command : Database.executeBatch(new nameOfYourBatchClass(optionalParamInConstructor), 1); Here, the second param in the executeBatch method (the value 1) is the scope ; it means you want the batch to handle the elements 1 by 1. For instance, if the batch has to deal with 10 elements, the execute method will executes 10 times. Thanks. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me