Using Microsoft Graph client sdk how would you use search Odata query

Viewed 5517

Using Microsoft Graph client sdk how would one go about using search Odata query to lookup if subject or body contains a certain search term.

The $search Odata query parameter is available in the Graph Client api, but i could not find how to use the parameter using the client sdk for c#.

2 Answers

Piggybacking off of @JohnStaurt's comments above, this worked for me:

List<QueryOption> options = new List<QueryOption>
{
     new QueryOption("$search", "\"displayName:team\" OR \"description:team\"")
};
Related