How to sync only data related to a list of objects on a native mobile app offline?
0
Hello, I am working on a native offline first app, and my users start to experience long sync duration because of the data getting bigger. I found out I could filter the data retrieved through Navigation -> Configure Synchronization. The problem is that I can only filter data based on attributes values when I would like to retrieve data of an entity if an object of an other entity has links to the first entity. Example : Here is my current filter on interventions In this case, if an intervention is retrieved, I want to retrieve all the services linked to this intervention. I don't want to retrieve services if the intervention linked to theses services was not retrieved. I only took my service entity as en example, but I would like to do this on all entities linked to Intervention. Thanks for your help!
asked
Simon
1 answers
0
You can accomplish this by setting the xpath at entity level.
For example
[Service/Intervention/IsSync]
Alternatively use a microflow call with the 'sync to device' activity to have full control over what you synchronise.