Graph Delta functions for special folders

MSAPINewbie 26 Reputation points
2021-08-09T12:59:08.36+00:00

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 :-)

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,473 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,174 questions
{count} votes

Accepted answer
  1. CarlZhao-MSFT 36,416 Reputation points
    2021-08-10T09:31:19.367+00:00

    Try this:

     IDriveItemDeltaCollectionPage page;
    
         page =  await graphClient.Me.Drive.Items["{folder id}"].Delta().Request().GetAsync();
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful