Exclude Only Folders in Graph Search API

Luis 0 Reputation points
2024-11-22T19:58:42.37+00:00

Hello everyone,

I hope you're all doing well. I'm reaching out to see if anyone can assist me with an issue I'm facing. I'm trying to exclude only folders from the Graph API search when querying data using this endpoint: https://graph.microsoft.com/v1.0/search/query

I've gone through the Search API Overview and have tried using KQL in the query terms, but I haven't been able to find a successful solution yet.

If anyone has experience with this or any suggestions, I would be incredibly grateful for your help.

Thank you so much in advance!

Best regards.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,393 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,354 questions
0 comments No comments
{count} votes

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.