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?
Sync Only Completed Cases
-
- Posts: 152
- Joined: November 21st, 2022, 4:41 pm
Re: Sync Only Completed Cases
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
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