When using /users/{user id}/calendar/calendarView?startDateTime={time}&endDateTime={time}} I dont receive a proper event's subject

admin 41 Reputation points
2023-02-13T21:36:26.7366667+00:00

In my front end application I am trying to receive rooms events in a period of time using above endpoint (rooms calendars are shared to admin user).
My problems:
1)I receive data but instead of the event's subject, which I really need, I get a name of organizer . I check in the rooms Outlook calendar --> the same,subject of the event is being displayed is an organizer name.
I also console the events created by the organiser --> subjects are okey. Why I am receiving different subjects in both cases?
2)I thought also of using getSchedule endpoint to get rooms events subjects but in response body I don't receive any event subject , just response body without any subject (opposite what documentation says), in Graph Explorer, but with subjects in Postman (although they are 'wrong' subjects as mentioned in the first point). What am doing wrong
This is what I got in Graph Explorer:


    "schedules": ["Test@onmicrosoft.com"],
    "startTime": {
        "dateTime": "2023-02-13T20:00:00",
        "timeZone": "Pacific Standard Time"
    },
    "endTime": {
        "dateTime": "2023-02-14T23:59:00",
        "timeZone": "Pacific Standard Time"
    },
    "availabilityViewInterval": 15
}
"value": [
        {
            "scheduleId": "Test@onmicrosoft.com",
            "availabilityView": "0000000000000000000000000000000000000000000000000000000000000000000002220000000000000000000000000000000000000000",
            "scheduleItems": [
                {
                    "status": "busy",
                    "start": {
                        "dateTime": "2023-02-14T21:20:21.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-02-14T21:50:21.0000000",
                        "timeZone": "UTC"
                    }
                }
            ],
            "workingHours": {
                "daysOfWeek": [
                    "monday",
                    "tuesday",
                    "wednesday",
                    "thursday",
                    "friday"
                ],
                "startTime": "08:00:00.0000000",
                "endTime": "17:00:00.0000000",
                "timeZone": {
                    "name": "Central European Standard Time"
                }
            }
        }
    ]
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,480 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Siddharth Gautam 860 Reputation points
    2023-02-28T14:54:46.06+00:00

    Hello admin,

    Thanks for reaching out.

    I tried to replicate the issue and I am facing the same. While querying room resource events, the response of the "subject" is returning the "organizer name" instead of the title set during the creation of event.

    This is by design behavior from Graph API as it only provides the details which is listed inside Outlook/Exchange UI. You can refer the below screenshots.

    Room resource calendar UI:

    known1

    Graph API call for a room event:

    known2

    As there is no workaround to get the exact subject for room resource as this is an expected behavior from Graph as it mimics what is there in Outlook/Exchange UI so, I would suggest you submit feature request idea with This link.

    Hope this helps.

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

    0 comments No comments

  2. Sammy 0 Reputation points
    2023-11-24T12:06:41.03+00:00

    if you have admin access to the room resource you can update its settings to not discard title on event creation as per https://connectioncloudsupport.zendesk.com/hc/en-us/articles/360046887434-Exchange-Online-Calendar-not-showing-title-of-the-meeting

    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.