cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Memorable Member
Memorable Member

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



If this reply has answered your question or solved your issue, please mark this question as answered.

Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

3 REPLIES 3
Highlighted
Community Support
Community Support

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.
Highlighted
Memorable Member
Memorable Member

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



If this reply has answered your question or solved your issue, please mark this question as answered.

Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

Highlighted
Memorable Member
Memorable Member

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

 



If this reply has answered your question or solved your issue, please mark this question as answered.

Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,839)