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

The Intelligent Commerce Stack: How Salesforce is Powering the Next Generation of Online Retail

Blog in

Online retail faces growing challenges: managing complex operations, integrating multiple sales channels, and delivering personalized, consistent experiences across B2C and B2B segments. Traditional commerce systems…

Popular Salesforce Videos