cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

Offline mode with SharePoint & Collections

Hey all

 

 

So with the recently added Offline mode introduced I experimented with it with the example that was given in the Blog about Offline mode. But now I tried to do it with SharePoint lists and I encountered an issue. So in my PowerApp I have no errors whatsoever, but when I try it on a mobile device in offline mode it gives me a Unknown errorI also saw that when Im offline that my item that I wanna save in another collection (so that this item can be placed online when the device has internet) is not saving, the collection stays empty. Ive tried multiple code fixes but no luck so far.

I know this is a vague description off my problem but maybe someone can help me and Ill explain in detail then.

 

Kind regards

 

 

Tom





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





3 REPLIES 3
Community Support Team
Community Support Team

Re: Offline mode with SharePoint & Collections

Hi Tom_Slosse,

 

I am trying to reproduce this issue on my side, could you show me the functions you are using on your app?


What’s the PowerApps version on your Phone?

 


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Re: Offline mode with SharePoint & Collections

Hey @v-yamao-msft

 

 

I replied to your post but apparently my post is in the rejected items so I don't know when you will see my answer with my functions

 

Kind regards

 

 

Tom





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





Super User
Super User

Re: Offline mode with SharePoint & Collections

Hey @v-yamao-msft

 

 

Let's try this again

 

The PowerApps app on my phone is the 2.0.630.

 

So I have following functions on

 

Onvisible HomeScreen:

 

If(Connection.Connected,ClearCollect(AlleBroodjes,Broodjes);
UpdateContext({statusText: "Online Data"}),
LoadData(AlleBroodjes, "Alle Broodjes", false);
UpdateContext({statusText: "Offline Data"}));
LoadData(LokaleBroodjesTeBestellen, "LokaleBroodjesTeBestellen", false);
SaveData(AlleBroodjes, "Alle Broodjes")

 

Order button:

 

If(Connection.Connected,Collect(LokaleBroodjesTeBestellen,Patch(MyLunch,Defaults(MyLunch), {Title: "",Beschrijving: TextBoxBeschrijvingDetail_1.Text, Leverancier: TextBoxLeverancierDetail_1.Text, Datum: DatePickerAfterOrder.SelectedDate,Soort: TextBoxSoortDetail_1.Text, Grootte: TextBoxSizeDetail_1.Text,Prijs: TextBoxPriceDetail_1.Text, Opmerking_x0020_leverancier: TextInputLeverancier_1.Text, Opmerking_x0020_Savaco: TextInputSavaco_1.Text, Vrijstelling: ToggleDetail_1.Value, Code: TextBoxCodeDetail_1.Text}));SaveData(LokaleBroodjesTeBestellen,"LokaleBroodjesTeBestellen"))

 

Also when I look into the collection of 'LokaleBroodjesTeBestellen' I don't see any saved sandwiches so.

 

Then I also have a timer that looks when the app is online to order the sandwiches right away.

 

OnTimerEnd:

 

If(Connection.Connected, ForAll(LokaleBroodjesTeBestellen,Beschrijving);Clear(LokaleBroodjesTeBestellen);SaveData(LokaleBroodjesTeBestellen,"LokaleBroodjesTeBestellen");UpdateContext({statusText: "Online Data"}))

 

Kind regards

 

 

Tom

 





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 134 members 5,328 guests
Please welcome our newest community members: