Missing shifts data after applying the filter in Microsoft Graph APIs

Mohammed Akter 96 Reputation points
2020-12-16T11:52:29.937+00:00

Hi we have more than 170 teams in our organization and pulling Graph API shifts data for them. Recently we have found out
that we are not getting shifts data for the date of 2020-12-15 and 2020-12-16 for a particular team member in a particular
team. We do not know we will have same issue for other teams as well.

Filer details: sharedShift/startDateTime ge 2020-12-14T00:00:00.000Z and sharedShift/endDateTime le 2021-02-18T00:00:00.000Z

However ,when we do not apply the filter we are able to get all the expected data. Could you please email me the solutions.
Mohammed.Akter@turning-point.co.uk

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,646 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,868 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mohammed Akter 96 Reputation points
    2021-01-20T16:00:31.937+00:00

    var shifts = await graphSC.graphServiceClient.Teams["OurParticularTeamId"].Schedule.Shifts

                 .Request().Filter("sharedShift/startDateTime ge 2020-12-14T00:00:00.000Z and sharedShift/endDateTime le 2021-02-18T00:00:00.000Z")  
               .GetAsync();  
    

    I am using the above C# code. But for your reference, this is the API details "GET /teams/{teamId}/schedule/shifts".You can find out more from the below link

    https://learn.microsoft.com/en-us/graph/api/schedule-list-shifts?view=graph-rest-1.0&tabs=csharp

    0 comments No comments