The OneDrive Search API is unable to find any files. Please help check this issue.

Leo Yang 21 Reputation points
2024-10-24T03:29:32.93+00:00

I am unable to find any files using the OneDrive Search API, but I can retrieve files using the Folder API. Please help me check this issue, thank you.
User's image

User's image

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,289 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,154 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rohit Raghuwanshi - MSFT 625 Reputation points Microsoft Vendor
    2024-10-24T08:23:13.2866667+00:00

    Hello Leo Yang,

    Thank you for reaching out, Microsoft!

    I tried to replicate the scenario and was successfully able to search the files directly from root folder. Please check the attached screenshot for your reference. If the file is recently uploaded, it may take few mins to be indexed for retrieval in search.
    User's image

    I hope this helps!

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment


  2. Leo Yang 21 Reputation points
    2024-11-05T08:14:43.4866667+00:00

    Hi @Rohit Raghuwanshi - MSFT , Have you confirmed the existence of this issue? Do you have any solutions?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.