question

OliverMario-7381 avatar image
0 Votes"
OliverMario-7381 asked OliverMario-7381 commented

Graph Delta functions for special folders

Hi, how can I start a delta tracking on a specific folder using .Net (C#) in OneDrive ?

but my previous solution tracks changes in the whole drive:


   IDriveItemDeltaCollectionPage page;
    
   
     page = await graphClient.Drive.Root
                             .Delta() 
                             .Request()
                             .GetAsync();

But I want to track only the changes of a specific folder.



Who can help me ?


Thanks in advance :-)

dotnet-csharpmicrosoft-graph-sdkmicrosoft-graph-files
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Maybe ignore the changes which you are not interested in.

0 Votes 0 ·

I want to monitor only one specific folder and not the whole root. Ignore is not an option^^

0 Votes 0 ·
Viorel-1 avatar image Viorel-1 OliverMario-7381 ·

I think that it is an option if there are no options.


0 Votes 0 ·

1 Answer

CarlZhao-MSFT avatar image
1 Vote"
CarlZhao-MSFT answered OliverMario-7381 commented

Try this:

  IDriveItemDeltaCollectionPage page;
        
      page =  await graphClient.Me.Drive.Items["{folder id}"].Delta().Request().GetAsync();


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thank you :-)

0 Votes 0 ·