salesforce run batch class from developer console code example Example: apex execute batch job Id batchJobId = Database.executeBatch(new RunThisBatch(), 200);