web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Saving a form offline
Power Apps
Unanswered

Saving a form offline

(0) ShareShare
ReportReport
Posted on by

Hi,

 

We are migrating from SP on-prem to SP online and I have a list with a Infopath form which I was able to recreate in the "test" migration list on SP online. I have put a couple of hours on this form and I want to save it offline so I can reuse it when we do the final migration.

 

Is there an  easy way to do this?

 

Thanks

 

 

Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @marcguilmette ,

    Could you please share a bit more about your scenario?

    Do you want to save the form structure (including field structure and entered data) Offline or just the entered form data Offline?

     

    If you want to save the form structure (including field structure and entered data) Offline, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    If you just want to save the entered form data Offline, I think the SaveData function could achieve your needs. On your side, when you save your form data, you could use the If function to detect if you are online or offline. If online, save the form data back to your SP List directly, if offline, save the form data into a collection, then cache the collection into your local device.

     

    On your side, please consider set the OnSelect property of the "Submit" button to following:

    If(
     Connection.Connected,
     SubmitForm(EditForm1.Updates),
     ClearCollect(LocalFormData, EditForm1.Updates);SaveData(LocalFormData, "LocalFile");ResetForm(EditForm1)
    )

     

    Add a Timer control in your app, set the Duration property to following:

    1000

    set the AutoStart property and Repeat property to following:

    true

    set the OnTimerEnd property to following:

    If(
     Connection.Connected,
     ForAll(
     LocalFormData,
     Patch(
     'SP List',
     Defaults('SP List'),
     {
     Title: LocalFormData[@Title],
     Column2: LocalFormData[@Column2],
     Column3: LocalFormData[@Column3],
     ...
     ...
     }
     )
     );Clear(LocalFormData)
    )

     

    Set the OnStart property of the App to following:

    LoadData(LocalFormData, "LocalFile", true)

     

    More details about creating a Offline App in PowerApps, please check the following blog or video:

    https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/

    https://www.youtube.com/watch?v=1TAG8S_AWgw

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard