Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Log All Syncs by Users

Featured Replies

Hi

For reasons of accountability, Supervisors want to view a table of syncs undertaken by employees.

What is the best way to record a log of each time each user syncs (preferably recording the version of the database they are using) so thit can be presented to Supervisors?

Thanks,

ft.

Hi fishtech,

In the MirrorSync table, there are fields called lastSuccessfulTimestamp, databaseVersion, and lastUsername or (get(AccountName)) that you can use to track those metrics. If you create a script that performs the MirrorSync script, and tracks the last values for those fields on a successful sync, you can keep a record of those in a separate table.

Following up on Nick's suggestion - Assuming that you're using XML (as opposed to JDBC), the place to do this would be in the didSync method of the customization script.

  • 3 months later...
  • Author

So to clarify the process would be...

 

1. Create a new Log Table to track meta data of  the syncs

2. Using the didSync section of the customization script ON EACH SPOKE to script a 'new record' in the Log Table and populate using the meta data fields/values mentioned above.

3. Sync Log Table to the server

 

Do I have this correct? If so the data on the server will always be 1 sync behind, but I guess this is acceptable.

Or is there a way to get the Log data directly into a table on the server?


Thanks,

ft.

Edited by fishtech

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.