Rule registry · FL-010

Variable naming convention

Checked by the Salesforce Flow scan. Severity low.

FL-010LowMaintainability

What it requires. Flow variables must follow the SFXD naming convention: var_ prefix for all variables, var_coll_ for collections, var_sObj_ for record variables. Formulas must start with form_. Decisions must start with DEC_ or CHECK_. Assignments must start with SET_, ASSIGN_, STORE_, REMOVE_, or CALC_. Loops must start with LOOP_.

Why it matters. Consistent element naming allows any team member to understand the type and purpose of a variable or element at a glance, without reading its configuration. Auto-generated names (Variable1, Decision2) are unacceptable in a production flow.

How to fix it. Rename all variables and elements to follow the SFXD convention. Establish this as a team standard and enforce it in code review.

Source. SFXD Wiki: Flow Naming Conventions – Flow Elements. Community standard; the Salesforce Admins flow best practices guide links this wiki for naming conventions

Is this rule worth checking?

Votes and comments are published here. We read them, and we publish what we change with the reasoning — a vote does not move a rule on its own.

Every rule we check, every source, and every one we turned down