Power Apps Cheat Sheet for Beginners
This cheat sheet will give you great resources to start your learning or continue your learning with Power Apps. We have curated many resources for basic app creation steps, common Power FX formulas, free recordings, UI design ideas, and best practices for developing applications.
Quick Power Apps References
Download the Power Apps Cheat Sheet.
Power Apps Beginner Tutorial Video The best interactive video to start when learning Power Apps. Learn how to create an app from scratch that uses a database.
Power FX Common Expressions To Know First
Problem | Expression |
---|---|
Show the current logged in user | The User Function Examples
|
Filter the rows to a certain criteria | The Filter expression can filter the rows based on an expression of your choosing.
|
Lookup a value in another table or source | The lookup function can see the value from a different source based on an expression.
|
Create a Global Variable | Global variables can be seen on any screen. They can be created when you start an app by selecting the App OnStart event or on any actionable event.
|
Navigate to a new screen | Navigation can be done two ways: either go back to the previous screen you came from or navigate to a specific screen..
Optionally, you can specify an effect during the transition:
|
Send data from a form to the source. |
A few ways to send data from a form are SubmitForm or the Patch commands. The SubmitForm is easiest with he smallest amount of flexibility.
|
Searching multiple columns for a row | The Search command does a contains search across multiple columns and is usually used in galleries or data tables.
|
Updating or inserting data without a form | The Patch function is one way to update or insert data without using a form. For example, you can tie it to an OnChange even of a drop down box.
For inserting a record:Similarly, you can update data when you select an item in a gallery:
|
SharePoint Variations with a person picker |
Lookups and the Person Picker in Sharepoint require some variations to your code in Power Apps since it’s a packed field, meaning that the one field has a bunch of items inside of it with references. This gives you the ability to navigate the hierarchy easier in Power Apps. For filtering based on a Person Picker based on the person who’s signed in:
Patching is especially challenging into a Person Picker and a choice column. Both are shown below showing you how to unpack the column before inserting into your list. The below is showing inserting with Patch into a SharePoint list with a choice column called Status and a Person Picker column called Owner. A title column is required also for SharePoint.
Filtering on a choice column requires that you specify the value of the choice as shown below with a drop-down filter.
Defaulting a drop-down box in a form to your name in a person picker column
|
Get the first Day of the month | Some systems will require you insert the first day of the month vs today’s date.
Would return 3/1/2021 if it were 3/16/2021. Replace Today() with your own date picker if you want the customer to pick the date instead of always getting today’s date as shown below. For the last day of the month, you can use the With statement to construct your logic. The below code finds the first day of the next month then subtracts one day from that, giving you the last day of the previous month. With the With statement, you essentially, create a variable that’s only in scope of this one command. In my case that scope is only in the scope of a text label.
|