cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Support
Community Support

Re: Can't Make App Work Offline (Zipfile attached)

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

TopShelf-MSFT Community Champion
Community Champion

Re: Can't Make App Work Offline (Zipfile attached)

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

 

@TopShelf-MSFT 

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,116)