flow-loop-element-patterns - Review and Refactor Flow Loop Elements
Reviews Flow Loop elements for governor-limit risks, persistence issues, nested loops, and loop-free refactoring opportunities.
Tags
Updated: 2026-11-17Capabilities
What this skill does
- Identify DML-in-loop patterns
- Identify SOQL-in-loop patterns
- Detect nested loops
- Review subflows inside loops
- Design collect-then-DML refactors
- Evaluate loop-free alternatives
- Analyze FLOW_LOOP_DETAIL logs
- Estimate execution and CPU costs
Inputs
- Flow XML or design
- Source collection variable type
- Loop body operations
- Expected interview volume
Outputs
- Identified loop anti-patterns
- Collect-then-DML refactor instructions
- Loop or processor recommendation
- Element-execution and CPU-time estimate
Requirements
- Salesforce Flow
- Spring '25 or later
