1

I'm using the SharePoint Query Tool to query for documents in a document library on SharePoint Online. What Path:... should I be using.

The path to the library in Document Library Settings is: https://Company.sharepoint.com/subsite/Shared%20Documents/Forms/AllItems.aspx

I've tried https://Company.sharepoint.com/subsite/Shared%20Documents/*

Ultimately I need to query for all documents in that library.

Thanks!

3
  • 1
    can you post your code for the query? The ../subsite/Share%20Documents is the right path
    – lazoDev
    Aug 6, 2018 at 12:21
  • Please try "../subsite/_api/web/lists/getbytitle('[Doc Library Name]')/items". Aug 6, 2018 at 13:14
  • As it turns out, I was also filtering on FileType:pdf* which clearly conflicted with * in the Path: property. Aug 6, 2018 at 17:07

1 Answer 1

3

If you are talking about the Connection URL, you can use any valid URL for the search API. https://tenant.sharepoint.com or https://tenant.sharepoint.com/search. Then to only hit the doc library in question you can use the path Managed Property. path:https://tenant.sharepoint.com/subsite/*.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.