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 / Load Data - show list ...
Power Apps
Unanswered

Load Data - show list of files

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All

 

I've built an app that works offline (loads records, does a bunch of stuff, syncs)

 

I've added an option to save data locally to iOS device. Right now the file names are hard-coded. I'd like to name the files with a pattern like username_date. 

 

Is it possible to list the files saved with SaveData?

 

TIA

 

Mark

 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about your scenario?

    Do you want to list the files saved using SaveData function within your iOS device or canvas app?

     

    If you want to list the files saved using SaveData function within your iOS device itself, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    If you want to list the saved files within your canvas app, I think the LoadData function could achieve your needs. Within your app, you could use LoadData function to load cached data (stored using SaveData function) into a collection, then you could modify the collection data, e.g. rename the file name. After that, save the modified collection into your local device using SaveData function again.

    Note: The data stored using SaveData function in your app, could only be loaded using LoadData function.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks for reply. I know how to use LoadData and SaveData. All working fine, but I want save multiple files and show user of files that can be loaded?

     

    Regards

     

    Mark

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

    Hi @Anonymous ,

    Do you want to save multiple files into your local device once time within your app?

     

    If you want to save multiple files into your local device once time within your app, I think the Attachments control could achieve your needs.

    On your side, you could consider add a Edit form in your app, and add a SP List data source in your app, connect the Edit form to your SP List, then enable "Attachments" field data card in the Edit form, select the Attachments control within the form, then copy it (Ctrl + C), paste it in your other screen of your app. After that, you could use the Attachments control to upload files.

     

    Please check and see if the following video resources could help in your scenario:

    https://www.youtube.com/watch?v=kQVYid1p_vA

    https://www.youtube.com/watch?v=UYK7yruBHDM

     

    I have made a test on my side, please consider take a try with the following workaround:

    1.JPG

    Set the OnSelect property of the "Save" button to following:

    ClearCollect(
     FileCollection, 
     ForAll(RenameColumns(FileAttachments.Attachments,"Name","Name1","Value", "Value1"), {FileName: Name1, FileContent: Value1})
    );
    SaveData(FileCollection, "LocalData")

    Set the OnStart property of the App to following:

    LoadData(FileCollection, "LocalData", true)

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Kris

     

    Thanks for reply

     

    Attachments don;t help. I need to save to collections when offline and I want multiple iteration. I can use a dynamic name (username/datatime for example, but it;s no good if I can't show a user the list of files to load

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

    Hi @Anonymous ,

    The Attachments control could work when you are Offline (Regardless of whether you are Online or Offline, the Attachments control works well). On your side, if you want to assign a dynamic name for these attached files, please take a try with the following wortkaround:

    Set the OnSelect property of the "Save" button to following:

    ClearCollect(
     FileCollection, 
     ForAll(RenameColumns(FileAttachments.Attachments,"Name","Name1","Value", "Value1"), {FileName: Text(Now(), "yyyymmddHHmmss") & "_" & Name1, FileContent: Value1}) // Modify formula here, re-assign a dynamic name for these attached files
    );
    SaveData(FileCollection, "LocalData")

    Set the OnStart property of the App to following:

    LoadData(FileCollection, "LocalData", true)

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Kris

     

    I don;t think you're understanding the issue (or I'm not understanding the proposed solution). I have no attachments and don;t need attachments. i want dynamic names for SaveData and the ability to show the list of files save by save data

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard