nightlytrails nightlytrails - 1 year ago 115
Java Question

Search OneDrive files by title only with Microsoft Graph APIs

The below code searches OneDrive using Microsoft Graph APIs.

List<DriveItem> items = graphServiceClient

This codes returns all files and folders that matches the title (and probably content also as per the documentation) "abc".

How can I restrict search results to fetch only the files that matched the title "abc"?


Please vote for this feature request at-

Answer Source

There currently isn't a way to restrict the search target to just the title at this point. At this time, you'll need to perform client-side filtering of the results. Please open a feature request at the Office Developer Platform UserVoice page. Link to it from this post so other people can find and up vote it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download