Share via

Graph api getting data within time filter from request

FanOfSana 40 Reputation points
2023-12-01T01:02:51.3366667+00:00

I am using Graph api and getting data from shifts on odoo. I can get the data but i get all-time data and i want to get it between 2 dates or after the date I tried searching for examples i can follow but those examples also do not work (?$filter=(createdDateTime ge 2023-09-01T00:00:00Z AND createdDateTime le 2023-12-01T00:00:00Z)). Or am i using this wrong?

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-03-14T08:15:47.83+00:00

    filter is not supported on createdDateTime

    The supported filters are: 

    • ClockInEvent/DateTime (ge, le)
    • ClockInEvent/DateTime (ge, le)
    • UserId (eq)
    • State (eq)

    Was this answer helpful?

    0 comments No comments

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.