Sync Only Completed Cases

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
diabate
Posts: 2
Joined: June 30th, 2022, 10:22 am

Sync Only Completed Cases

Post by diabate »

Hi all,
I would like to know if there is a way using syncdata logic to sync only completed cases or cases that fit certains criterias.
I have tried to use universe but it is geometric and related only to the case ID.
Can someone help me?
justinlakier
Posts: 152
Joined: November 21st, 2022, 4:41 pm

Re: Sync Only Completed Cases

Post by justinlakier »

Hi,

Syncdata can only separate cases within a dictionary based on the ID universe. To make sure that you are syncing only completed cases or cases that fit certain other criteria, you can run a For loop over the dictionary beforehand which finds all cases that match your criteria. You could potentially sync them in the loop using their ID as a universe, however running syncdata for each case separately would be very inefficient. Instead, I recommend having the For loop send all correct cases to a new dictionary that will have only cases matching the criteria, and then syncing this dictionary.

Hope this helps,
Justin
Post Reply