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 III
Super User III

@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 III
Super User III

@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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,045)