Hello there,
I'm working with an add-in solution in my company and we have encountered an issue while trying to locate a file on a customer’s drive using the Microsoft Graph API. Specifically, neither of the MS search endpoints we use is able to find or return the file. However, if we fetch a list of the user’s files separately, we can locate the file in the list (this was tested with my personal email and business email).
Here are the API details:
API version: https://graph.microsoft.com/v1.0
Endpoints used:
/me/drive/search
/search/query
The issue is reproducible with a file that was previously found but is no longer returned for some reason. Also, we are able to write to these files e.g. using the add-in so the file is not read-only.
Additionally, we observed the same behavior in the Graph Explorer sandbox: https://developer.microsoft.com/en-us/graph/graph-explorer
For example:
- The file appears in the responses from the "list drive files" and "recent drive files" endpoints.
- However, the "search my drive" endpoint does not return the file.
Looking forward to any guidance or suggestions you may have on resolving this issue.Hello there,
Thanks in advance.