Relative Content

Tag Archive for c#.netazuremicrosoft-graph-api

Fetch documents/files from share point drive

We have multiple SharePoint sites, and our application is registered on the domain. Currently, we are trying to fetch documents from SharePoint using a client ID and secret, but we are encountering issues. We have used the GraphClient but receive empty objects for the root, drives, and item lists. We have also ensured that all permissions are granted at the application level. Here is the code snippet : (code developed in .net 8 and we have used latest Microsoft.Identity.Client Nuget package)