Activity › Forums › Salesforce® Discussions › Can we fire triggers in batch execute methods?

  • Ravi

    Member
    July 12, 2016 at 4:15 AM

    Hi Tanu,

    Only way to fire a trigger by doing some DML operation.You perform a DML operation on sObjects, and the trigger will automatically fire. If your batch apex is performing DML (insert, update, delete, undelete) and you have an active trigger in the system for one of those events, the trigger will fire.

    • This reply was modified 10 years, 2 months ago by  Ravi.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a