function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sreekanth reddysreekanth reddy 

how many times trigger fires when running batch apex?

k sfdck sfdc


See below link

http://salesforce.stackexchange.com/questions/40672/does-batch-apex-fire-off-triggers
Raj Jha 5Raj Jha 5
Hello Sreekanth, 

If your trigger is bulkyfy in that case your tigger will excute and excetution till Apex limit is not reached. 
If your trigger is not bulkyfy in that case your trigger will not work. 

Thanks
Cloud_forceCloud_force
Hi Sreekankt,

Triggers code runs when you do a dml on object records.. If your batch apex has a dml and if there is a trigger defined on that object only then the trigger would fire..
thansk,
http://www.forcexplore.com/2014/08/visualforce-and-apex-tutorial-for-beginners.html