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 / Save inputs before sub...
Power Apps
Unanswered

Save inputs before submitting

(0) ShareShare
ReportReport
Posted on by 5

Greetings all.


Let me start by thanking all of the contributors on here, what a great resource! I am looking for some suggestions and guidance on how to structure an app that I am building so that data being entered into inputs is repopulated in the event of the app being closed, device turning off, etc.

 

Use case:

  • A daily log that is filled and added to throughout the day, being submitted at the end of the day.
  • Only one user will be accessing the app.
  • Data must be organized by date in SP with only one row per date containing the data

Requirements:

  • If powerapps is closed, crashes, or the device running it dies, all inputs prior to patching to SP will be autopopulated to resume work.
  • Must be done automatically, without the use of a "save" button.

Wishlist:

  • inputs can be viewed throughout the day on SP, prior to patching completed log to SP
  • session can be resumed on another device in the event of a device failure (non-local storage)

I have found a few similar examples, but nothing that quite fits my use case (I may have missed them, my apologies if this post is redundant). I have a few ideas of how I may be able to achieve this, but they may not be best-practice or I could be completely wrong and they are not viable options.

 

1. have OnStart set to loaddata from collection and set each input to Onchange clear the associated column in collection and collect input

2.  Group the different inputs and have a button for each. I.E button for "Opening Readings" pops out a form to enter all opening readings which will patch to a temporary list in SP  i.e "Opening Readings". Set form to Onstart loaddata from SP "Opening Readings", save button displayed will remove all data from SP "Opening Readings", patch current inputs. repeat for all groups of inputs and have labels on the main page that show data from their respective SP lists with a "submit" button that will patch all data displayed in labels to main SP list, remove data from from all temporary SP lists.

3. Create "draft" SP list and set timer to OnEnd remove all data from draft SP list and patch all entries to draft SP list. Set OnStart to retrieve data from draft SP list. Submit button patches data to main SP list and clears draft SP list.

 

Sorry to ramble on but I am really enjoying SP & PA and excited about all of the possibilities. I hope I made some sense here.

 

Thanks gurus,

 

poolboy

 

Report.png
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @poolboy 

    I think the only way to guarantee that your data is saved in the event that the session closes prematurely is to commit it to SharePoint at the time it is entered.  You can always develop a summary afterwards.  If someone has a better idea, I'd like to hear it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard