Power Fx function
LoadData — Power Fx function reference
Reload a saved collection.
Syntax
powerfx
LoadData( Collection, "FileName" [, IgnoreNonexistentFile ] )
Examples
powerfx
LoadData(colCart, "cart", true)
→ Restored offline
powerfx
LoadData(colCart, "cartData", true)
powerfx
If(!LoadData(colDrafts, "draftTasks", true), ClearCollect(colDrafts, Blank()))
Common mistakes & gotchas
- The saved column structure must match what LoadData is asked to populate — loading into a differently-shaped collection can error.
- Pass true for IgnoreNonexistentFile during normal startup so a first-run device with no saved file yet does not throw.
Related Power Fx functions
From Collections & local storage