cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

online/offline conflicts when submitting saved records

Hi,

 

Does anyone know how I can handle conflicts when the internet connection goes online and return to offline while submitting saved records from the cache?

 

I enter my records offline and save then in the cache.
Then when i have sone signal i try to send them and empty the cache.

 

However, it seems like some of mey records are send, but not all of them. and then the cache does not emty itself.

 

Any idea how to handle that situation?

 

Many thanks

 

 

 

3 REPLIES 3
Highlighted
Community Support
Community Support

Hi @blue_lotus ,

 

Please share the related formulas, like the one to save/send/empty the cache. Maybe some screenshots would be even better.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

UpdateContext({varload:true});

ForAll(offline_records,
Patch(l_data,Defaults(l_data),
{ date:c_date, topic:Text(c_topic), address:Text(c_address)} ) ) ;
SaveData(offline_records,"offline_records_local_storage");
LoadData(offline_records,"offline_records_local_storage");

UpdateContext({varload:false}); Navigate(home,ScreenTransition.None)

Highlighted

sorry I forgot something: that 's the formula:

 

UpdateContext({varload:true});

ForAll(offline_records,

Patch(l_data,Defaults(l_data), { date:c_date, topic:Text(c_topic), address:Text(c_address)} ) ) ;

Clear(offline_records);

SaveData(offline_records,"offline_records_local_storage");
LoadData(offline_records,"offline_records_local_storage"); UpdateContext({varload:false});
Navigate(home,ScreenTransition.None)

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 (11,873)