Hi @Aravind Pai
The $filter
query parameters don't yet support not
and contains
combined, but you can try using code filtering, which I've tested locally and it works perfectly.
var events = await graphClient.Me.Events
.Request()
.Select("subject,start,end,onlineMeeting")
.GetAsync();
foreach (var e in events) {
if (!e.Subject.Contains("HOST")) {
Console.WriteLine(JsonConvert.SerializeObject(e));
}
}
By the way, $select
query parameters are only used to return the properties of the event, not to return the children of the event properties.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".