cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Can't Make App Work Offline (Zipfile attached)

Hello,

 

I am currently having issues making my app offline compatible. I cant seem to get the app to save to a local collection when offline, then push to my common data source (SP) when online. 

 

The functionality of my offline code consits of a timer that checks for connection with an if statment as well as a upload to load any locally stored data that was saved offline (both on homescreen) 

 

My new form screen has the two forms i would like to be able to save offline. I have placed the code which I believe would save the code offline, but I have yet to make it work. The code is in the "Save and Submit" button. 

 

I have attached a zip for my app below so you can view it and possibly figure out why my app isnt working. I have been working a while to figure out why my code does not work and have yet to fingure out why. Any help at all would be greatly appriceated. 

 

Please let me know if you have any additional questions / comments.

 

Thanks,

Sam

2 REPLIES 2
Highlighted
Community Support
Community Support

Hi @Anonymous 

 

Do you want to build one offline app?

Could you please reference this?

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps

https://powerapps.microsoft.com/es-es/blog/build-offline-apps-with-new-powerapps-capabilities/

 

Try to test the formula expression as this:

If(Connection.Connected,
ClearCollect(MySPCollection,'FAST Data');
UpdateContext({statusText: "Online data"})
,
LoadData(MySPCollection, "MySPCollection", true);
UpdateContext({statusText: "Local data"})
);
SaveData(MySPCollection, "MySPCollection")

Navigate(Home,ScreenTransition.Cover)

 

Best Regards.

Yumia

Highlighted
Anonymous
Not applicable

Hi @Anonymous how are you progressing with this? Was the above reply helpful?

 

@Anonymous 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,794)