Page tree
Skip to end of metadata
Go to start of metadata

This function takes in a list of table along with a date that represents when changes where last checked for(LastModified)

Parameters

Used to call the function

Returns

the following is return by the function

 

Get if needed example
            IItemServiceservice service = new IItemServiceservice() { BasicSecurityValue = new BasicSecurity() { Username = "ws.demo", Password = "password" } };
            var statArray = service.GetHasRecordChanges(new TQueryNeedSync[] {
                new TQueryNeedSync() {
                    TableName = "GLTRANS",
                    LastModified = new DateTime(2017,4,1,22,0,4,200)
                },
                new TQueryNeedSync() {
                    TableName = "INTRANS",
                    LastModified = new DateTime(2017,4,1,21,0,7,454)
                },
                new TQueryNeedSync() {
                    TableName = "ARTRANS",
                    LastModified = new DateTime(2017,4,1,21,0,5,489)
                }
            });
            if(statArray.Single(x => x.TableName == "GLTRANS").HasChanged)
            {
                //DO SOME SYNC MAGIC like with GetRecords http://confluence.dkvistun.is:8090/display/DEV/GetRecords
                service.GetRecords(new DateTime(2017, 4, 1, 22, 0, 4, 200), "GLTRANS", new TRecordOptions() { UseXMLDateTime = true, ExtraProperties = new string[] { "RecordID", "Code", "Account" }, MaxRecords = 250, SkipEmptyValues = true });
            }

 

 

 

Using this function will result in much less calls needed to keep data between system more up to date with less need to check for each table