Skip to content

Power Apps

2024 Power Apps Coding Standards For Canvas Apps

2024 Power Apps Coding Standards For Canvas Apps Welcome to the Power Apps Coding Standards For Canvas Apps. In this guide you will find 50+ pages of coding ...

Matthew Devaney
Published
Reading time
3 min read

Before you start

Is this guide for you?

Best entry point
Power Apps
Time investment
3 min read

Imported reference from Matthew Devaney's blog for learning purposes. Original: https://www.matthewdevaney.com/power-apps-coding-standards-for-canvas-apps/. Author: Matthew Devaney.

2024 Power Apps Coding Standards For Canvas Apps

Welcome to the Power Apps Coding Standards For Canvas Apps.

In this guide you will find 50+ pages of coding rules , guidelines and best practices I use everyday to create Power Apps Canvas apps. I have spent the last 3 years building Power Apps every day. Now I want to share the knowledge I’ve gained in this set of easy-to-understand, actionable examples.

Power Apps already has an official set of canvas coding standards released back in 2018. So why did I make my own? A few reasons:

I wanted an updated set of standards and guidelines for 2024 that includes all of the latest features

These coding standards can be continuously improved as new Power Apps features hit “general availability” in 2025, 2026, 2027 and beyond

Readers can leave comments on my website describing their own best practices which I can incorporate into future versions

I hope you enjoy my Power Apps Coding Standards For Canvas Apps. Download Free PDF   😺 Table Of Contents 🔠 Naming Conventions Screen Names Control Names Variable Names Collection Names Datasource Table Names 📦 Variable Types Variable Scope Usage Examples Why Use Global And Local Variables? 📝 Commenting Code Why Write Code Comments? Commenting Style Line Comments vs. Block Comments Tips For Writing Good Comments ⚙ Canvas App Settings General Tab Display Tab Upcoming Features Tab Support Tab 🔎 Reviewing Canvas Apps App Checker Power Apps Code Review Tool Source Code Review Functional Testing User Acceptance Testing 🎨 App Theming Creating An App Theme Theming Variables Sample Code Branding Template 📋 Form Design & UX Guidelines Restrict Text Input Values Validate Form Data Implement Error Handling Protect Against Loss Of Unsaved Data

Use A Single Form To Create, Edit & Display Records 🖼 Gallery Design & UX Guidelines Design Empty States Refresh Gallery To Show Current Data Reset The Gallery Scroll Position Filter Large Datasets In A Gallery Define The Gallery Sort Order

Require A Button Press To Update Search Results Avoid Nested Galleries Use Flexible Height Galleries 🐞 Error-Handling Enable Formula-Level Error Management Patch Function Error-Handling Power Apps Forms Error-Handling Power Automate Flow Error-Handling IfError Function Handling Unexpected Errors ⚡ Optimizing Performance Load Multiple Datasets Concurrently Write Formulas That Use Delegation Cache Data In Collections And Variables Limit The Size Of Collections

“Batch Patch” Multiple Changes To A Datasource Table At Once

Reduce Code In The App’s OnStart Property

Minimize Number Of Controls On A Single Screen

Enable DelayOutput For Text Input Controls

Do Not Reference Controls On Other Screens Eliminate The N+1 Problem 👓 Improving Code Readability Apply Automatic Formatting Use The WITH Function Flatten Nested IF Functions

Have A Consistent Naming Convention For Controls & Variables Join Text Strings And Variables Choose Consistent Logical Operators

Remove IF Statements When The Result Is A True Or False Value

Simplify Logical Comparisons When Evaluating A Boolean

Substitute The Self Operator For The Current Control Name

Alphabetize Patch & UpdateContext Function Arguments Additional Sections

🌳 Change Log – tracks all updates made to the coding standards Questions?

If you have any questions about 2024 Power Apps Coding Standards For Canvas Apps please leave a message in the comments section below. You can post using your email address and are not required to create an account to join the discussion.

Share this

Tagged

Power Apps

Have a Microsoft 365 topic idea?

Share article suggestions, community session ideas, corrections, or real-world scenarios for future nextM365 learning notes.

Suggest a topic

Keep learning Microsoft 365

Explore more practical guides for SharePoint, Power Platform, Copilot Studio, migration, automation, governance, and security.

Continue learning

Next action

What to do next

Browse all tutorials →