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 / Savedata and Loaddata ...
Power Apps
Unanswered

Savedata and Loaddata Questions

(0) ShareShare
ReportReport
Posted on by 301

Hi,

 

I have an app thats used on both laptop and andriod.

 

I have two questions

 

1) if a user uses my app on a laptop and the save data and load are used in the app like onstart or after a collect etc will it crash the app and make the app unusable as it does in the web browser powerapp edit mode if you run the loaddata or savedata code?

 

2) in one particular app its a canvas app with no forms, there are 3 screens each with text inputs, combo boxes, check boxes and dropdowns etc to input data into collections that are displayed on galleries and eventually they are uploaded to a sharepoint list.

In this app setup two of the galleries hold information and just have a single row for each one ItemID, the first gallery names and selects the itemsID and connects a list ill call IDinformation where its just a broad look at the itemsID and a few things. The second gallery and inputs looks at the itemsID of the first one and adds the location data to the itemsID ill call the list IDLocations.

 

The final gallery looks at the itemsID and goes into a more indepth look at the itemsID and it can have hundreds of rows connected to that ID ill call the list IDExtrainfo, the last gallery also has a piece of code that only displays the collected data of the currently selected ID from the first one of the galleries (if the app can run in both PC and andriod (question 1)) where should i put the savedata code? I take it in the first two screens gallerys after i collect each row entry and in the second do i keep adding to the savedata file? and then have a onstart loaddata and a patch when connected.connection is true to press a button to load each of the 3 files up? 

 

whats the most effiecent way to use Loaddata and Savedata for my situation?

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

    Hi @ShaneITAutomate :

    Let me answer your questions in order:

    Q1:

    This is a known limitation——

    You can't use these functions(Savedata/Loaddata) inside a browser when:

    • Authoring the app in Power Apps Studio.
    • Running the app in the web player.

    I think this link will help you a lot:

    SaveData and LoadData functions in Power Apps 

    Q2:

        Sorry, I cannot understand your description of your app. Could you please describe your needs in simple sentences?(Some screenshots better).

        In addition, I generally recommend using Loaddata only when loading the App. Because when using the app, you can save temporary data in the collection at any time. If you want to save the data locally and load it, it becomes redundant.

       The same, regarding Savedate. You usually only need to ensure that the data that needs to be saved is saved locally before closing the App. But because Canvas app does not have the OnClosed property, I suggest you add a Savedate function to your submit button to ensure that the data is saved locally before the user close the app.

      Best Regards,

      Bof

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard