Cheat Sheets/Power Apps/UpdateContext
Power Fx function

UpdateContextPower Fx function reference

Set screen-scoped variables.

Syntax

powerfx
UpdateContext( { Name: Value, ... } )

Examples

powerfx
UpdateContext({locShowPanel: true})
Scoped to one screen
powerfx
UpdateContext({locSortDesc: !locSortDesc})
powerfx
UpdateContext({locStep: 2, locSelectedId: ThisItem.ID})

Common mistakes & gotchas

Related Power Fx functions

From App & navigation

Used in these tutorials

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