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 / Auto save when switche...
Power Apps
Answered

Auto save when switched from offline to online

(0) ShareShare
ReportReport
Posted on by 23

Hello,

 

I have designed an app which contains multiple screens with multiple fields(Such as age,address and other user related info) that a user must fill. This app works in offline mode, where the user fills the data and saves the data into a collection. So if I connect to the internet the data must automatically patch to a SharePoint list. Is this scenario possible considering that I have around 10 screens and I might be at any screen at any time and I must not know that the data is being patched to the list. Thanks in advance for your suggestions.

 

Thanks,

TD

Categories:
I have the same question (0)
  • Verified answer
    sayyed007amir Profile Picture
    357 on at

    Yes, its possible.
    Refer this code:

    If(Connection.Connected,
    ForAll(Collection,
    Patch(DataSource,
    columnname1:collectionColumn1,
    columnname2:collectionColumn2
    )
    )
    )

     Feel free to ping me, if your issue not solved.

  • RaviTD Profile Picture
    23 on at

    Thanks for your response, I have tried this but I faced an issue where I want it to work irrespective of which screen I am in so does it mean that I need to have the code in every screen.

  • sayyed007amir Profile Picture
    357 on at

    If you want to save your all screens record in one record.
    Then do one thing Patch as soon as Internet Connect and Set a variable so that you know whether it patched or not.
    Then Collect that patched record ID and then update record based on that ID.
    If this not your exact query then explain please.

  • RaviTD Profile Picture
    23 on at

    Thanks your suggestion helped me, I'll mark your reply as the solution

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard