// BatchClass is the name of batchclass
BatchClass bh = new BatchClass();
Database.executeBacth(bh);
My only concern is that the Trigger would fire on the DML events and that would invoke the Batch.Do you want to run batch as many times as the Trigger would fire ??
If this helps,please mark it as best answer to help others :)
// BatchClass is the name of batchclass
BatchClass bh = new BatchClass();
Database.executeBacth(bh);
My only concern is that the Trigger would fire on the DML events and that would invoke the Batch.Do you want to run batch as many times as the Trigger would fire ??
If this helps,please mark it as best answer to help others :)
In your Trigger code something like below :-
My only concern is that the Trigger would fire on the DML events and that would invoke the Batch.Do you want to run batch as many times as the Trigger would fire ??
If this helps,please mark it as best answer to help others :)
All Answers
In your Trigger code something like below :-
My only concern is that the Trigger would fire on the DML events and that would invoke the Batch.Do you want to run batch as many times as the Trigger would fire ??
If this helps,please mark it as best answer to help others :)