0

I tried using change id "1" too. But it returns empty result. However if searched for the whole drive (team drives and My drive) , it is working fine. I tried this on google API sandbox. Gives the same result.

Here is the code snippet i used.

            List<Change> allteamdriveChanges = new List<Change>();
            ChangesResource.ListRequest req = _gdrive.Changes.List();           
            req.StartChangeId = (long)(Convert.ToUInt64(changeId) + 1);
            req.MaxResults = 1000;
            req.IncludeTeamDriveItems = true;
            req.SupportsTeamDrives = true;
            req.TeamDriveId = teamDriveId;

            do
            {
                ChangeList changes = req.Execute();

                foreach(var change in changes.Items)
                {                   
                        allteamdriveChanges.Add(change);
                }               
                
                currentChangeId = changes.LargestChangeId.ToString();
              
                req.PageToken = changes.NextPageToken;

            } while (!String.IsNullOrEmpty(req.PageToken));

            return allteamdriveChanges;

        

Can anyone look into this ?

0 Answers0