How to manage Sync Objects?
Hi there!
Today, I’ll show you, how you can manage a sync object. There are two ways to manage sync objects:
Either you can manage them via your database.
Or you can manage them via webservice calls.
Besides, there are three possibilities for the sync direction:
Either from server to client.
Or from client to server.
Or in both directions.
Managing Sync Objects via your Database
If you want to manage your sync objects with a database, you have to select this option. There are three possible definitions:
indexfields: This definition specifies the IDs of the index fields, which are created after the sync object table is created. → e.g. indexfields=idContactID,idCustomerID,sLastName,sFirstName;
partialsync: This definition determines, whether a partial sync is allowed or not. → e.g. partialsync=false;
partialpagesize: This definition sets the partial page size, if a partial sync is specified. → e.g. partialpagesize=1000;
For example, we want to manage our contact sync objects. We also need to set “Get Objects”, “Get Changes” and “Get Deletes”. With “Get Objects” we get all records for the initial sync. We get our changed records on the server (since ‘dtLastSync’) with “Get Changes”. With “Get Deleted” we get the IDs of deleted records from the server (since 'dtLastSync').
Managing Sync Objects via Webservice Calls
The other option is to call a webservice in order to manage your sync objects. In this case, we need to set “Get Schema” as well.















