Cheat Sheets/Power Apps/UpdateIf
Power Fx function

UpdateIfPower Fx function reference

Change fields on matching records.

Syntax

powerfx
UpdateIf( DataSource, Condition1, ChangeRecord1 [, Condition2, ChangeRecord2, ... ] )

Examples

powerfx
UpdateIf(Tasks, Priority = "Low", {Status: "Closed"})
Matches changed
powerfx
UpdateIf(Tasks, Priority = "Low" && DueDate < Today(), {Status: "Closed"})
powerfx
UpdateIf(colCart, Item = "Pen", {Qty: Qty + 1})

Common mistakes & gotchas

Related Power Fx functions

From Creating & changing records

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet