You need to sign in to do that
Don't have an account?
rcher
Passing a where clause to a batch job dynamically.
Hi,
Is there a way to pass the where clause dynamically to the query which is executed in the database.execute method from developer console.
Is there a way to pass the where clause dynamically to the query which is executed in the database.execute method from developer console.
Here is the sample code.
Now you can call this batch from developer console.
BatchExample be = new BatchExample('id != null');
Database.executeBatch(be);
Do let me know if you need more help.
Regards,
Naval
All Answers
Here is the sample code.
Now you can call this batch from developer console.
BatchExample be = new BatchExample('id != null');
Database.executeBatch(be);
Do let me know if you need more help.
Regards,
Naval