Finding User Synch History

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
wesnich
Posts: 11
Joined: June 5th, 2019, 11:16 pm

Finding User Synch History

Post by wesnich »

Is there any way to determine data syncs by user? cspro_log seems to only have errors. What is cspro_sync_history describing? What is the device field? Is there any way that can be used to identify a user name? Is it an identifier of the device used for upload? If so, how would we map it to something?
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Finding User Synch History

Post by josh »

The cspro_sync_history has syncs by device. Each row represents a sync session for a device. A session represents a single call to syncdata() so one session can sync multiple cases in the same dictionary (or none). The device field is a unique id for each device. You can use getdeviceid() in CSPro logic to find the device id for a particular device. There is not any direct way to map it to a user. You could have an external data file in your CSPro application in which you store the device id by calling getdeviceid() and also store the username and then use sync to upload to the server for each user. The result would be a table in CSWeb that you could use to associate a user to a device id and to a sync_history entry.
Post Reply