Graph API - Events with property isAllDay

YH-5466 41 Reputation points
2022-08-17T14:40:59.86+00:00

Hi,

My ticket is about the Graph API https://graph.microsoft.com/v1.0/users/[userEmail]/calendarview

I create a event in WebMail with the option "all day".
When I call the API https://graph.microsoft.com/v1.0/users/[userEmail]/calendarview?,
I got my event but the start date and the end date do not take into account the time zone. If, I create a event, manually, with start date and end date, I have the time zone.

I join a sample :

  • First event with property "isAllDay": true
    "start": { "dateTime": "2022-08-10T00:00:00.0000000",
    "timeZone": "UTC" },
  • Second event without "isAllDay"
    "start": { "dateTime": "2022-08-10T22:00:00.0000000", "timeZone": "UTC" },

In my API, I filter on properties and I don' get the isAllDay property, in the $select
But if I want to have the dates with the right timezone I should get this property?

Do you have an other idea ?

Regards

Microsoft Security | Microsoft Graph
Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Shivam Dhiman 6,081 Reputation points
    2022-08-18T16:27:08.88+00:00

    Hi @YH-5466

    I am able to reproduce both the scenarios and this behavior works as per design. To select 'isAllDay' property in calendarview Graph API please refer to the below sample screenshot.
    232517-true1.png

    232561-false1.png

    For more details about isAllDay property please refer to this documentation.

    Hope this helps.

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

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. YH-5466 41 Reputation points
    2022-08-19T07:35:25.913+00:00

    Hi @ShivamDhiman-1582

    Thank you for your answer.
    Previously, I was using the EWS APIs and the date took into account the time zone.
    With the graphical APIs, I have to get an additional property and do some additional processing.
    So I have to get more properties.

    Yohann

    0 comments No comments

Your answer

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