Skip to content

Instantly share code, notes, and snippets.

@bdovhan
Created August 6, 2019 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdovhan/76326745c347dde00717c0318e3bc15b to your computer and use it in GitHub Desktop.
Save bdovhan/76326745c347dde00717c0318e3bc15b to your computer and use it in GitHub Desktop.
Dummy Batchable Apex Class B
public class b implements Database.Batchable<SObject>,Database.AllowsCallouts{
public Database.QueryLocator start(Database.BatchableContext bc) {
return Database.getQueryLocator('SELECT id FROM user WHERE IsActive=true limit 1');
}
public void execute(Database.BatchableContext bc, List<User> users) {
new Http().send(new HttpRequest());
}
public void finish(Database.BatchableContext bc) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment