Fetch sharepoint document set all files and fields using rest api url

Nagendra 121 Reputation points
2020-11-30T18:32:54.533+00:00

Hi,

In our sharepoint site we have document set under document library. In that document set we have few files and fields. We need to display all those files and fields on the webpart.

Can someone kindly let me know the REST api url for this scenario

Regards,
Nagendra.

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,569 questions
0 comments No comments
{count} votes

Accepted answer
  1. Baker Kong-MSFT 3,791 Reputation points
    2020-12-01T01:56:53.157+00:00

    Hi anonymous user-9029,

    You can query the document set just like querying folders.

    /_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/s01/Nagendra9029DocLib/testdocset01')?$expand=Folders,Files,ListItemAllFields

    43785-image.png

    Best Regards,
    Baker Kong


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Nagendra 121 Reputation points
    2020-12-15T05:59:37.537+00:00

    Thank you Baker Kong-MSFT.
    I got the solution.

    Regards,
    Nagendra.

    1 person found this answer helpful.
    0 comments No comments