Activity Forums Salesforce® Discussions Why we prefer one trigger per object in Salesforce?

  • Ayush

    Member
    February 18, 2020 at 2:33 pm

    Hii Anjali,

    Best practice is not necessary "one trigger per object". It is one trigger per event and per object. An event is anything like before insert, before update, after insert....
    You cannot update trigger code from an installed managed package. In this situation, you need to have your own trigger even if the package has already its own trigger on the same object and same event.

  • Ratnesh

    Member
    February 18, 2020 at 2:34 pm

    We can write more than one trigger But it is not recommended. The best practice is One trigger On One object.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos