Commonly Used Power Apps Functions

Microsoft Power Apps offers many built-in functions that help you create apps quickly with less code. Learning a few important functions can make app development faster and easier.

This guide explains commonly used Power Apps functions with simple examples and practical use cases.

1. If() – Conditional Logic

The If() function checks a condition and returns a result based on whether the condition is true or false.

Syntax:

If(Condition, ResultIfTrue, ResultIfFalse)

Example:

If(Status = "Approved", Green, Red)

Use cases:

2. Filter() – Filter Data

The Filter() function gets specific records from a data source based on a condition.

Syntax:

Filter(DataSource, Condition)

Example:

Filter(Employees, Department = "IT")

Use cases:

3. LookUp() – Get One Record

The LookUp() function returns the first record that matches a condition.

Syntax:

LookUp(DataSource, Condition, Result)

Example:

LookUp(Employees, Email = User().Email, Manager)

Use cases:

4. Patch() – Save or Update Data

The Patch() function is used to create or update records in a data source.

Syntax:

Patch(DataSource, Defaults(DataSource), {Column: Value})

Example:

Patch( 
Requests, 
Defaults(Requests), 
{ 
Title: txtTitle.Text, 
Status: "Submitted" 
} 
)

Use cases:

5. SubmitForm() – Submit a Form

The SubmitForm() function submits data using a Power Apps form control.

Example:

SubmitForm(Form1)

Use cases:

6. Reset() – Clear Controls

The Reset() function resets an input control to its default value.

Example:

Reset(txtName)

Use cases:

7. Notify() – Show Messages

The Notify() function displays messages to users.

Syntax:

Notify("Message", NotificationType.Success)

Example:

Notify("Data saved successfully", NotificationType.Success)

Use cases:

8. Navigate() – Move Between Screens

The Navigate() function moves the user to another screen.

Syntax:

Navigate(ScreenName, Transition)

Example:

Navigate(Dashboard, ScreenTransition.Fade)

Use cases:

9. Set() & UpdateContext() – Variables

These functions store values temporarily.

Global variable:

Set(varUserRole, "Admin")

Context variable:

UpdateContext({showPopup: true})

Use cases:

10. Collect() & ClearCollect() – Collections

Collections store data in memory for temporary use.

Example:

ClearCollect(colEmployees, Employees)

Use cases:

Final Thoughts

By learning these basic Power Apps functions, you can:

These functions are the foundation of most Power Apps solutions and are useful for both beginners and experienced developers.