Get all Files in a folder using Microsoft Graph API

Giri 21 Reputation points
2020-06-22T13:19:53.057+00:00

Requirement - Need to access a particular File within a Document Library

File Path - host-name/sites/sitename/Shared Documents/Folder1/File1

I tried with these

https://graph.microsoft.com/v1.0/sites/{host-name}/sites/{site-id}:/drives

  • Got all the Document Library in that site

https://graph.microsoft.com/v1.0/sites/{host-name}/sites/{site-id}:/drives/{drive-id}/root/children

Tried with the above getting error, Bad request.

I am new to MS Graph, Not sure where I am going wrong. Any help will be highly appreciated.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,712 questions
0 comments No comments
{count} votes

Accepted answer
  1. tbgangav-MSFT 10,416 Reputation points
    2020-06-22T13:44:23.253+00:00

    Hi @Giri ,

    Thanks for reaching out! SharePoint Site related is not currently supported here on QnA. They're actively answering question in dedicated forums here.

    https://techcommunity.microsoft.com/t5/sharepoint/ct-p/SharePoint

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.