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!

  • 1
    can you post your code for the query? The ../subsite/Share%20Documents is the right path – lazoDev Aug 6 '18 at 12:21
  • Please try "../subsite/_api/web/lists/getbytitle('[Doc Library Name]')/items". – Gopal Zadafiya Aug 6 '18 at 13:14
  • As it turns out, I was also filtering on FileType:pdf* which clearly conflicted with * in the Path: property. – Martin Muldoon Aug 6 '18 at 17:07
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, privacy policy and cookie policy

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