cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Clear App data without deleting List data

I have an App to store attachments in a SharePoint list. Since this list will grow beyond the apps capacity and it will be used on 45+ devices, I would like the data on the App to clear on startup without losing any data on my SharePoint list. How could I go about doing that?

5 REPLIES 5
RandyHayes
Super User
Super User

@Anonymous 

Can you explain more about what you mean by clearing the data?

PowerApps does not store any data and only brings in what you tell it to.  So when your app starts, it is pretty much empty of data until the first time you go to a datasource to gather some.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

@RandyHayes 

 

Thank you for that info.

 

Let me explain my app's purpose. An employee goes out and takes multiple photos as attachments to a call ID. These upload to my SharePoint list where I can see them and reference later if needed.

 

I would like these to not be on the app where multiple drivers can reference them or possibly edit them once they have uploaded to my SharePoint. They're either deleted locally after upload or at another time. Does that make more sense?

@Anonymous 

So unless you have built the capability to store the images locally, PowerApps is not going to do that by default.  If you take photos in the app, they are only as good as that session.  If you open the app again, they will not be there.  If you take photos and do nothing with them (i.e. store in your datasource), then they will be gone when the app is closed.

If you have, during that session, updated them back to your datasource, then they will be there in the datasource from that point forward.  The only way they could be referenced or shown in the app is if they are purposely gathered again from the datasource.  PowerApp would not have them there any other way.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

@RandyHayes 

 

That makes sense. How would I keep the app from pulling from the data source when I open it up?

@Anonymous 
That is all going to be about your design.  If you don't want people to get an attachment or change it after it is created, then put that logic in your app.  If you want only the creator/owner of that record to be able to do so, then put that logic in.

Otherwise, PowerApps will not know what to do anyway.  It's a blank canvas...you make it do what you want with the formulas and design that you put together.

 

The only area of concern would be (and I think you might have eluded to this in one of your messages) if multiple people are going to use the same device under the same account.  If that is the case then technically they are all the same owner.  But I'm not really sure you have this scenario.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,074)