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 attachments in th...
Power Apps
Unanswered

Save attachments in the offline module

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,
I create an application that aims to collect data on the progress of work at the construction site. In case I have Internet access, the application works well. However, there will be situations when the internet is unavailable and therefore trying to build an application that will work offline.
Currently, the application is able to collect text data and save it locally and when it gets access to the Internet, it will update individual tasks. The problem appears when I want attachments or photos.
Does anyone know if it is possible to save files in local memory during offline mode and later save to the main database?

Best regards
Łukasz

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

    Hi @Anonymous ,

    Do you want to save Images data into your local device when your device is offline?

     

    Based on the needs that you mentioned, I think SaveData function and LoadData function in PowerApps could achieve your needs. Please check and see if the following blog would help in your scenario:

    https://powerapps.microsoft.com/en-us/blog/savedata-and-loaddata-unleashed/

     

    On your side, you could consider add a "Add Picture" control to pick up pictures from your local device. Then use the following formula to collect the captured images into a Collection:

    Collect(Pictures, UploadedImage1.Image)

    please use the following formula to save the Pictures collection into your local device:

    SaveData(Pictures, "Saved Pictures")

    then use the following formula to load cached Pictures collection data into your app:

    LoadData(Pictures, "Saved Pictures", true)

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

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So basically, what i have found is that the attachment is very tricky to handle while offline.
    To work around this issue, if the attachments are only going to be images, i provide the users with Camera Control and Image Upload Options. Then store the content string from both in the collection. When the Application is online again, use flow to add the data to SharePoint or CDS using Flow.

    So, you would need to create a custom container (or screen) with the following:

    1. Camera Control

    2. Collection with Image Name and Data 

    3. Gallery to display and modify these images.

     

    And when the application live,
    1. Create the record

    2. Pass the record ID or GUID along with Image Collection to Flow.

     

    Let me know if this help or you would like to see some screenshots.

  • sitam Profile Picture
    2 on at

    Hi, 

    I'm dealing with the same issue. 
    Could you show us how you used Power automate to send the images to Sharepoint ?
    Do you store them in Sharepoint List ? 

  • rbn_nue Profile Picture
    on at

    Hi 

     

    How can we handle if it's other attachments and not images (PDF, excel etc).  Could you please share the work around?

     

    Thanks.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard