Cheat Sheets/Power Apps/Patch (update)
Power Fx function

Patch (update)Power Fx function reference

Update an existing record.

Syntax

powerfx
Patch( DataSource, BaseRecord, ChangeRecord [, ChangeRecord2, ... ] )

Examples

powerfx
Patch(Tasks, ThisItem, {Status: "Done"})
Updated record
powerfx
Patch(Tasks, LookUp(Tasks, ID = locId), {DueDate: DatePicker1.SelectedDate, AssignedTo: {Value: cmbAssignee.Selected.Email}})
powerfx
Patch(Tasks, ThisItem, {Status: "Done"}, {CompletedDate: Today()})

Common mistakes & gotchas

Related Power Fx functions

From Creating & changing records

Used in these tutorials

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