Every Power Apps Developer Must No ( Naming Conventions )

 Naming Conventions In Power Apps

Why Naming Is Important?

1.  Helping Us To Differentiate The Things.
2. Provide Meaning Full Information.
3. Help The Other To Understand.

1. Screen Names

A screen name should clearly describe its purpose in 2-3 words ending with the word “Screen.”  Use proper-case.   A screen reader will speak the screen name to visually-impaired users when the screen loads.

NO.Good ExampleBad ExampleBad Resone
1Home ScreenhomeMissing Word Home
2View ScreenViewscreenNot Friendly To Screen Reader
3Edit ScreenEditScrNot Provide Meaningful Information To Reader

Screen Naming

2. Control Names

A control name should showthe control-type, the purpose and the screen.  Use camel-case and underscores for spacing.For example, the controlnamedtxt_OrderForm_FirstNameis a text input that capturesfirst nameon the app’s Order Form Screen.  


NO.Good ExampleBad ExampleBad Resone
1btn_SubmitbuttonsubmitNO SPACING
2txt_FristName_edittxt_edit_fristNameWrong Order
3Btn_Edit_informatiobut_edit_informationNon Standerd Control Prefix


A list of standard control prefixes can be found below.

Control Prefix
3D Object3do
 Add Picture pic
 Address Input add
 Audio aud
 Barcode Scanner bar
 Button btn
 Camera Control cam
 Canvas cvs
 Card dtc
 Charts chr
 Check Box chk
 Collection col
 Container con
 Combo Box cmb
Componentcmp
 Date Picker dte
 Drop Down drp
Exportexp
 Form frm
 Gallery gal
 Group grp
 HTML Text htm
 Icon ico
 Image img
Importimp
 Label lbl
 List Box lst
 Map map
Measuring Cameramcm
 Microphone mic
 Microsoft Stream str
 PDF Viewer pdf
 Pen Input pen
Power BI Tilepbi
 Radio rad
 Rating rtg
 Rich Text Editor rte
 Shapes shp
 Slider sld
 Table tbl
 Text Input txt
 Timer tmr
 Toggle tgl
 Video vid

Variable Names

A variable name should show the scope of the variable and its purpose. Use camel-case with no spaces between each word. For example, the variable gblUserEmail is a global variable which holds the current user’s email address.

Good ExamplesBad ExamplesBad Reason
gblUserCurrentUserCurrentNo scope
locPacksInBoxQuantityLoc_Packs_In_Box_QuantityImproper capitalization and spacing
LocIsLoadinglocBoolLoadingDo not use data types in variable names
varWorkdaysDuringVacationvarWorkdaysNot descriptive enough

Collection Names

A collection name should contain the original datasource and describe its purpose. Use camel-case with no spaces between each word.  For example, the collection colDvInvoices is a collection of invoices from Dataverse.


Good ExamplesBad ExamplesBad Reason
colSpEmployeescolEmployeesNo datasource
colDvSalesLeadscoldv_salesleadsImproper capitalization and spacing
colNavigationMenuNavigationMenuDo no use data types in variable names

A standard list of datasource abbreviations can be found below:

Original DatasourceAbbreviation
DataverseDv
SharePointSp
SQLSql
SalesforceSf
None (created in-app)(none)


Datasource Table Names

A datasource created by the developer should have 1-3 words to describe its purpose.  Use the singluar form of the word and proper-case.  Be as concise and clear about the purpose of the datasource as possible.

Good ExamplesBad ExamplesBad Reason
EmployeeEmpAbbreviation instead of full word
Construction ProjectsProjectsToo general, what type of projects?
Repair OrdersRepairOrdersNo spacing, plural

Thanks for reading!

I hope you found this blog on the Microsoft Power Platform helpful! From Power Apps, Power Automate (Cloud & Desktop), Canvas Apps, Model-driven Apps, Power BI, Power Pages, SharePoint, Dynamics 365 (D365), Azure, and more, I cover a wide range of topics to help you harness these powerful tools. Don’t miss out on future tips, tutorials, and insights—hit that subscribe button to get the latest posts right to your inbox. 💌

💬 I’d love to hear your thoughts! Drop a comment below with your questions, ideas, or feedback—let’s get the conversation started!

🔗 Let’s connect and grow together!
Follow me, Ravindra Jadhav, on your favorite platforms for even more content and updates on Microsoft Power Platform and related technologies:

  • 💼 LinkedIn – Let’s network and share ideas!
  • 💻 GitHub – Explore my projects and code.
  • 🐦 Twitter – Stay updated with quick tips and industry news.
  • 📺 YouTube – Watch tutorials and deep dives on Power Platform, Power Apps, Power Automate, and more!

Let’s build something amazing together with Power Platform and Azure! 🚀

Post a Comment

0 Comments