Is it possible to filter an HTTP Request to SharePoint that is used to query a document library?
I am building a power app with a search feature that allows the users to search the contents of files in a document library. I have a Uri that works for the entire library but I would like to focus the search on a set of documents tagged with a particular metadata. This is my Send an HTTP Request to SharePoint setup:
Site address: MySite
Method: GET
Uri: /_api/search/query?querytext=%27[SearchText]%20path:https://myDocLib*27&RowLimit=30
Headers:
Content-Type - application/json
Accept - application/json
I tried to add a filter by looking at how SharePoint filters a library and it did not work. Power Automate allowed me to add the following to the Uri with no errors, but the search results are still from the entire library:
added this -->&FilterField1=Category&FilterValue1=%27CategoryName%27<--
/_api/search/query?querytext=%27[SearchText]%20path:https://myDocLib*27&FilterField1=Category&FilterValue1=%27CategoryName%27&RowLimit=30
So, is there there a way to filter this?