Cheat Sheets/Power Apps/Defaults
Power Fx function

DefaultsPower Fx function reference

Get a blank record for a source.

Syntax

powerfx
Defaults( DataSource )

Examples

powerfx
Defaults(Tasks)
Empty record
powerfx
UpdateContext({locBlank: Defaults(Tasks)})
powerfx
Patch(Tasks, Defaults(Tasks), {Title: "Untitled", Status: "Open"})

Common mistakes & gotchas

Related Power Fx functions

From Creating & changing records

Used in these tutorials

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