Salesforce Apex Master Class (Ep. 30) - Collection Iteration Best Practices
In this episode we go over some best practices when iterating over collections in Apex to help ensure you don't run into limits! Schedule Salesforce consulting time with me here: https://calendly.com/codingwiththefor... Please consider donating to help continue to improve the content produced for Coding With The Force: https://www.paypal.com/donate?busines... Get Coding With The Force Merch Here: https://my-store-d20559.creator-sprin... Follow all of our social media here: Patreon: / codingwiththeforce Github: https://github.com/Coding-With-The-Force Facebook: / codingwiththeforce Twitter: / coding_force Instagram: / codingwiththeforce Salesforce development books I recommend: Advanced Apex Programming: https://amzn.to/3lXi8to Salesforce Lightning Platform Enterprise Architecture: https://amzn.to/2R0D4BQ Mastering Salesforce DevOps: https://amzn.to/3lTtTRN Good Non-SF Specific Development Books: Clean Code: https://amzn.to/35PuMDU Clean Architecture: https://amzn.to/35FYo6A ----------------------------------------------------------------------------------------------------------------------- Table of Contents: 0:00 - Intro 2:35 - Why you should always bulkify DML Statements 8:11 - Why you should never use SOQL when iterating over collections 11:22 - Why you should try to use Maps instead of nested for loops 15:16 - Outro DISCLAIMER: The views and ideas expressed on this YouTube channel and blog are based on past development experiences and may not always work for your particular scenarios. The advice in these videos may also become outdated as technology advances. They should be used as examples for educational purposes only. Using any shown solutions in your own org is not advisable since they are example scenarios. #salesforce #salesforcedeveloper #salesforceadmin

Salesforce Developer Tutorial: How to use the Apex Safe Navigation Operator to Reduce Null Checks

Build a Full-Stack GenAI Project in 4 Hours (FastAPI, React, Supabase)

Git Branching and Merging - Detailed Tutorial

Salesforce Apex Master Class (Ep. 29) - Collection Iteration in Apex (How to Write For Loops)

Deep Dive into Apex Best Practices

Salesforce Apex Master Class (Ep. 20) - What is the Static Keyword in Apex?

Salesforce Developer Tutorial: How and When to use Interfaces In Apex

Why Aliens Would NEVER Invade Africa

Ex-Google Recruiter Explains Why "Lying" Gets You Hired

Salesforce Apex Best Practices

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

How SpaceX Humiliated Wall Street

How to Answer ANY Question (Even If You Don't Know The Answer!)

Salesforce Development Tutorial - A Complete Guide To Asynchronous Apex in Salesforce

Something is jamming GPS over Europe. Here's what we found

Listen and Feel the Peace | Tibetan Healing Sounds for Deep Meditation, Inner Peace & Soul Healing

Salesforce Apex Master Class (Ep. 19) - What are Maps in Apex?

Difference between ODK Collect and Kobo Collect

