none
How to get files from a folder in the library in one call RRS feed

  • Question

  • Hi Experts,

    I have a requirement to list all files in the library folder, do you have any ideas how to do it with html client side ?

    Tuesday, January 14, 2020 2:04 PM

Answers

  • Hi developer sp,

    You can retrieve all of the files in a folder with following endpoint:

    Best Regards,

    Baker Kong


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    • Marked as answer by developer sp Thursday, January 16, 2020 7:19 AM
    Wednesday, January 15, 2020 1:55 AM

All replies

  • Hi

    If you want to get the all the files of a library, you can setup a view that exclude folder and show all files. Then get items through this view.

    But if you want to get files that some folder that inside the library, you have to write recursive call.


    Justin Liu Office Apps & Services MVP, MCSE
    Senior Software Engineer
    Learn Microsoft 365 from Microsoft DOCs now!
    Please Vote and Mark as Answer if it helps you.

    Wednesday, January 15, 2020 12:56 AM
  • Hi developer sp,

    You can retrieve all of the files in a folder with following endpoint:

    Best Regards,

    Baker Kong


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    • Marked as answer by developer sp Thursday, January 16, 2020 7:19 AM
    Wednesday, January 15, 2020 1:55 AM