function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
public void yourMethodName(){ YourBatchClassName bcn = new YourBatchClassName() ; ID batchprocessid = Database.executeBatch(bcn); }
You can call your batch class from a method inside your apex class using following code:
Hope this helps!
Please mark this question as Solved if this answers your query so that others can view it as a proper solution.
Thanks,
Apoorv
All Answers
You can call your batch class from a method inside your apex class using following code:
Hope this helps!
Please mark this question as Solved if this answers your query so that others can view it as a proper solution.
Thanks,
Apoorv
here's class method to run batch paex from apex class :
Batch_name batchJob = new Batch_name();
ID batchprocessid = Database.executeBatch(batchJob);
If you find it useful. Mark it best.
Thanks