Trouble with Filtering in MS Graph API Query [MS Bookings / Appointments]

Sportback 51 Reputation points
2024-05-31T08:05:08.8366667+00:00

I am having difficulty in filtering appointments based on the serviceID field while querying the Microsoft Graph API.

I tried with $filter and $seach, but same problem, it returns me all appointments.

User's image

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    2024-05-31T09:01:52.1433333+00:00

    Hi @Sportback

    After testing, I get the same results as you, and can see that the $search and $filter query parameters are not working, which you can also see in the Api, meaning that the endpoint only supports some of the query parameters.

    User's image

    You can do this only by first getting a set of all bookingAppointment objects and then iterating through that set locally to filter out what you need.

    Hope this helps.

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

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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