Learn what the Loop element is in Salesforce Flow Builder and exactly how to use it in this beginner-friendly tutorial. The guide walks through creating a Record-Triggered Flow on Contacts, using Get Records to retrieve data, and then processing multiple records efficiently with Loop.
Key Steps
- Create a Record-Triggered Flow – Set up a flow that triggers on Contact creation or update.
- Add Get Records Element – Retrieve a collection of related records (e.g., all Opportunities for a Contact).
- Add and Configure the Loop Element – Select the collection from Get Records and define a loop variable to iterate through each record.
- Add Actions Inside the Loop – Perform operations like updating fields, creating new records, or sending emails for each record in the loop.
- Save & Activate – Test your flow and activate it for production use.
Best practice: Use Loop to avoid hitting Salesforce governor limits when processing many records. Always test with a small data set first.
This tutorial is perfect for beginners looking to automate repetitive tasks in Salesforce using Flow.