New answers tagged

1

you are mixing here the concept of start and execute methods of Database.Batchable<sObject> interface. in start, you are writing a query, that defines what records should be processed in execute method. Just a filter for records that should be selected. In order to set size of records passed to execute method as a scope, use Database.executeBatch(...


Top 50 recent answers are included