Meeting event declined in outlook email but it sends invitee email to attendee when meeting room booked for again for same time

Amitkumar Bhatt 61 Reputation points
2022-02-07T14:09:31.767+00:00

I am creating event to book meeting room. I have Conference1 meeting room which I booked for tomorrow 12:00 to 12:30 pm. If again I create same booking for same Conference1 and same time. I am getting graph response as created by code : await graphClient.Me.Calendar.Events.Request().AddAsync(@event). But I got declined response in organizer mail:
'Your request was declined because there are conflicts.
The conflicts are:
Organizer and Time of Conflicting Meeting'

It also send meeting event invitation to attendee. This is not good. Why it is not responding with declined. Why it is sending invitee to attendee if it sends declined mail to organizer's inbox .

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,447 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sheena-MSFT 1,721 Reputation points
    2022-02-08T17:44:30.287+00:00

    Hi @Amitkumar Bhatt ,

    While creating a event using Graph API we can add room resource by inviting the room resource as an attendee to a meeting.

    For example:
    POST https://graph.microsoft.com/v1.0/me/events
    {
    "subject": "Let's go for lunch",
    "body": {
    "contentType": "HTML",
    "content": "Does noon work for you?"
    },
    "start": {
    "dateTime": "2022-02-08T12:00:00",
    "timeZone": "India Standard Time"
    },
    "end": {
    "dateTime": "2022-02-08T14:00:00",
    "timeZone": "India Standard Time"
    },
    "location": {
    "displayName": "Harry's Bar"
    },
    "attendees": [
    {
    "emailAddress": {
    "address": "yyyy@X .onmicrosoft.com"
    },
    "type": "required"
    },
    {
    "emailAddress": {
    "address": "room3@X .onmicrosoft.com"
    },
    "type": "resource"
    }
    ],
    "allowNewTimeProposals": true,
    "transactionId": "7E823256-7762-4BEB-A1G6-749EA81735A7"
    }

    when we are trying to create the same event with same resource the room resource will give the declined message to organizer.

    171870-event1.png
    Meeting request from organizer side will be created and the invitation to other attendees will also be send. you are getting declined message back because the room resource is managed by the server and it will return the message based on the free/busy schedule and the event won't create in room resource calendar but it will created in the organizer and other attendees calendar.

    Here meeting room is considered like other attendees and it is a default behavior that if one attendee declines the meeting it doesn't remove the organizers meeting request.

    Reference:https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http

    Hope this helps.

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


0 additional answers

Sort by: Most helpful