Trigger Sync service

Trigger Sync is a program dedicated exclusively to synchronizing a Nios4 database automatically, without installing the full versions of the systems. The program, which can be installed on Windows systems, is launched directly from the command prompt with the sole purpose of synchronizing a local database in Access or SQL Server format with the database in the cloud.

setup

Installation

After running the setup, go to the installation folder, usually c:\Software_D-One\TriggerSyncNios4, and edit the triggersyncnios4.json file, entering the connection parameters.

{
  "username": "username",
  "password": "password",
  "pathdbaccess": "Access database path",
  "dbnamecloud": "cloud database name"
}

In the file, keeping the formatting and the quotation marks, replace the sample values with your login details, the path of the Access database on the computer where the trigger is installed (or a network folder the computer can reach) and the database name. You can find the name in the apps, in the settings panel under the user name, or in the bottom left corner of the desktop versions, also next to the user name.

Optional keys

"connectionstring": "connection string",
"token":"access token"

Alternatively, you can remove the username and password keys and add the token key, if you have a token. To connect to an SQL Server database or an Access database with special parameters, replace the pathdbaccess key with connectionstring and enter the OLEDB connection string.

Running the command

From the command prompt, manually or as part of an automated procedure, type triggersyncnios4.exe. If the values are correct and the system can connect to the server, the automatic synchronization starts from time tid=0. When synchronization finishes, the system retrieves the new tid and saves it in the triggersyncnios4.json file, to use it as the time marker for the next synchronization.

c:\Software_D-One\TriggerSyncNios4\triggersyncnios4.exe
27/01/2024 10:01:17 > TRIGGER SYNC NIOS4 V.1.0.0.0
27/01/2024 10:01:18 > Start sync db=crmdonee tid=0
27/01/2024 10:01:21 > End   sync db=crmdonee tid=20240127090120

For more information on how synchronization works and how to write data correctly, see the following guides:

Nios4 database structure

Data synchronization