run batch in anonymous window salesforce code example Example: apex execute batch job Id batchJobId = Database.executeBatch(new RunThisBatch(), 200);