Power Fx function
SaveData — Power Fx function reference
Persist a collection on the device.
Syntax
powerfx
SaveData( Collection, "FileName" )
Examples
powerfx
SaveData(colCart, "cart")
→ Saved offline
powerfx
SaveData(colCart, "cartData")
powerfx
SaveData(colDrafts, "draftTasks")
Common mistakes & gotchas
- Mobile/desktop player only, with a size limit. Not available in the browser.
- Only works in the mobile/desktop player — calling it from a browser-run app is a no-op or error depending on version, so it is unsuitable for a web-only app.
- Data is stored locally per device and user, not synced anywhere — useful only for offline caching, not multi-device persistence.
Related Power Fx functions
From Collections & local storage