I am using the following to get changes that happened in a Site Collection.
ChangeToken token = new ChangeToken(); token.StringValue = lastChangeToken; ChangeQuery query = new ChangeQuery(true, true); query.ChangeTokenStart = token; ChangeCollection changecol = site.GetChanges(query); context.Load(changecol); context.ExecuteQuery();
This returns all the changes since the last change token.
I want only the very latest change to get the Site Collection's updated last change token. So, I am looking for something that returns only the last change rather than getting all changes as there might be a considerable time difference.
query.FetchLimit = 1; query.LatestFirst = true; but got error as "Specified method is not supported." while ExecuteQuery. I even tried to use
site.GetChanges does not accept it.