Lightning Flow Scanner
Scans for unsafe contexts, hardcoded IDs, and find common issues in Flows.
Overview
Open-source tool that improves the quality, security, and performance of Salesforce Flows; available since 2021 with 500,000+ downloads and usable via CLI, VS Code, GitHub Actions, and a native app.
Detects hardcoded IDs and URLs to prevent org-specific and environment issues.
Finds unsafe running contexts to protect data visibility and enforce security.
Flags inefficient SOQL or DML loops that risk hitting Apex governor limits.
Identifies recursion risks in after-update Flows for safer, predictable automation.
Detects hardcoded secrets and credentials
Enforces Flow naming conventions and missing descriptions for documented, maintainable automation.
Highlights missing fault paths to help you handle errors.
Checks outdated API versions to maintain Flow compatibility and stability.
The same rules run in the Lightning Flow Scanner GitHub Action, Salesforce CLI plugin and VS Code extension. Can also be used for static code analysis in Salesforce DevOps pipelines and pull request reviews.
Lightning Flow Scanner is a Salesforce app for static analysis and optimization of Flows. It scans metadata for more than twenty quality and security issues to help teams maintain reliability and consistency in automation. The scanner detects problems such as hardcoded IDs, unsafe execution contexts, inefficient SOQL or DML operations, recursion risks, and missing fault handling, giving admins and developers practical insights to improve Flow performance. Built for Salesforce professionals who focus on precision and maintainability, Lightning Flow Scanner evaluates Flow structures against a set of best-practice rules. Each rule identifies potential issues, explains their cause, and suggests improvements. The tool helps avoid common automation errors such as exceeding Apex limits or poor naming conventions. Its modular configuration allows teams to adjust severity levels, define exceptions, and align checks with internal standards. Since 2021, Lightning Flow Scanner has supported Flow quality across open-source tools and now brings the same core engine into Salesforce. Running analysis directly in your org helps detect issues early and makes Flow quality easier for everyone.
Categories
- Business Needs
- IT & AdministrationAdmin & Developer ToolsDeveloper Tools
- Personas
- AdministratorArchitectDeveloper
- FeaturesNo LimitsThis product's apps, tabs, and objects don't count against your Salesforce org limits. Learn More in HelpLightning ReadyOptimized for Salesforce orgs that use Lightning Ready.Managed PackageThis product is installed in your Salesforce org as a managed package and receives automatic upgrades.Lightning App BuilderReady to use in the Salesforce Lightning App Builder.
- No LimitsLightning ReadyManaged PackageLightning App Builder