Activity Forums Salesforce® Discussions How do you Bulkify a trigger in Salesforce?

  • Marziya

    Member
    July 6, 2020 at 1:35 pm

    Never ever write a SOQL query inside any “for” loop for whatsoever reason. ...
    If you need to fetch large amount of data from an object (More than 50,000 records), then go for batch apex to pull that data, else you will again bump into another governor limit that wouldn't allow you to fetch more than 50,000 records.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos