cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lukas1
Advocate III
Advocate III

Offline App: synchronise new data only

Hi,

 

I am using SaveData and LoadData to achieve offline capabilities in my app.

 

On App-Start I check if the device is online. If so, I ClearCollect my collections and get the data from SharePoint lists. 

Considering loading time: Is it possible not to load the whole lists but instead to check for new/changed items and load only those items? 

Thanks,

Lukas

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

@Lukas1 ,

You could check those with a modified date of greater than a set time (Today()-7) or the like if that is what you are meaning. The query however is not delegable so will not work on large lists.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

@Lukas1 ,

You could check those with a modified date of greater than a set time (Today()-7) or the like if that is what you are meaning. The query however is not delegable so will not work on large lists.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Hi @Lukas1 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @WarrenBelz ,

 

yes, got it to work. And thanks for pointing out the delegation issue. It can be fixed by converting the dates to a numerical value first and then compare the numerical values.

 

Thanks,

Lukas

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,781)