Learn how to automatically assign new or updated records—such as Leads or Cases—to a Queue using Salesforce Flow. This step-by-step tutorial walks through building a Record-Triggered Flow that routes records to the right team queue for efficient triage.
Key Steps:
- Create a Record-Triggered Flow: Start from Setup and choose the object (e.g., Lead, Case) and trigger conditions (when a record is created or updated).
- Get the Queue Record: Use a Get Records element to retrieve the target Queue by name or developer name.
- Assign the Owner: Add an Assignment element to set the record's OwnerId to the Queue ID from the Get step.
- Save and Activate: Save your flow and activate it to start auto-assigning records.
Best Practices:
- Use a Decision element to conditionally assign to different queues based on record fields (e.g., priority, region).
- Test flows with a sandbox before deploying to production.
- Monitor flow debug logs to verify queue assignments.
This approach streamlines case routing, improves response times, and reduces manual work for your Salesforce team.