function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vishu Sri 6Vishu Sri 6 

Hi All, Good Day! I want to run batch apex on a list of records provided. I don't want to have run any SOQL in start() method. How to achieve this?

Hi All, Good Day! I want to run batch apex on a list of records provided. I don't want to  have run any SOQL in start() method. How to achieve this?
TruptiTrupti
Execute method will never execute if Scope is empty!
If you do not want any soql in start() then you need to come up with some other alternative.As a result to this statement, "scope" will never be empty or null, because execute won't be called if there's nothing to do.

Is there any specific reaon for not including SOQL?