Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to get My Documents using search REST API

$
0
0

I have used search results web part to get only the Documents I have uploaded/modified with certain file types and under a managed path and it works perfect.

Query text: (STS_ListItem_DocumentLibrary) AND (FileType:doc* OR FileType:xl* OR FileType:ppt* OR FileType:pdf* OR FileType:txt OR FileType:PDF*  OR FileType:jpg  OR FileType:png) AND Author:{User.Name} AND SPSiteURL:webappname/managedpath*.

Sorting: LastModifiedTime descending.

How Can I pass all the conditions and sorting to search REST API to achieve the same results ? Thanks in advance


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>