web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / PWA form submission da...
Power Pages
Unanswered

PWA form submission data stored locally

(0) ShareShare
ReportReport
Posted on by 8

I have started working with my Power App Portal as a PWA.  That says that offline for submissions will not work and that makes sense.  Is there a way I can redirect that to instead of just doing nothing to save that data locally (indexdb, localstorage whatever)?  We want to be able to still collect simple data submissions offline and then push those when connection is restored.

Categories:
I have the same question (0)
  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @timeless ,

    we did this before in a kind of prototyping. We just intercepted (in the serviceworker) the postcall and in case of no network we stored the values locally somewhere (i think, we used indexdb with an additional helperlibrary, not sure).
    When the network was back, we just posted the content again. Thsi worked for logged in and anonymous users.

     

    I haven't tested the pwa features yet but as there are now apis available i would store the values of the fields (can be relatively easily gathered from the form) and then passing them over to the api in case the network ist back.

    But as i said: this is just the idea, haven't tried it but in former versions it worked already for us (unfortunately i am not allowed to share the code, may be i or somebody else shod write a little bit about it 🙂 )

     

    Hope this helps (even if it is not the solution already),

      Christian

  • timeless Profile Picture
    8 on at

    Thanks for the response!


    Any tips or issues on running indexdb?

    Which APIs were you referring to?

  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @timeless ,

    the apis of portals are described here: https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-overview . Sometimes a little bit clumsy to use (especially lookups are, well, challenging).

    I have no special tips or recommendations on indexdb. It was just prototyping and no idea, whether this approach would have gone to production. We used https://github.com/jakearchibald/idb-keyval , but i am not sure whether this is production ready.

     

    Hope this helps,

      Christian

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard