You need to sign in to do that
Don't have an account?
Developement
Run a batch using developer console
Hi,
How to run a schedule job instantly?
I am using the below but it doesn't work and i get an error:
Line: 1, Column: 17
Argument must be an object that implements Database.Batchable
Id batchJobId = Database.executeBatch(new SendEmailsales(), 200);
How to run a schedule job instantly?
I am using the below but it doesn't work and i get an error:
Line: 1, Column: 17
Argument must be an object that implements Database.Batchable
Id batchJobId = Database.executeBatch(new SendEmailsales(), 200);
Database.executeBatch can be used only for classes that implements Database.Batchable<sObject>, means if your class is batch class only than you can user Database.executeBatch.
For scheculing class, use the below code: This will schedule your code to run every hour.
Let me know, if you need any other help.
Thanks,
Neetu
You are using the correct syntax. You can share your class code for finding the problem.
Id batchId = Database.executeBatch(new ClassName(), 1);
If you find your Solution then mark this as the best answer.
Thank you!
Regards
Suraj Tripathi