In Microsoft Exchange, when you create a meeting using EWS (Exchange Web Services) and set the "SendMeetingInvitations" attribute to "SendOnlyToAll," it means that the meeting request will be sent to all attendees, but you will not receive any responses, including acceptances or rejections. This is why you do not see the meeting request being removed from your calendar when you reject it; Exchange doesn't handle responses in this mode.
Reject Outlook invite programatically
I am generating Outlook invites using EWS CreateItem function using NodeJS. I am using Exchange 2013. When I generate the invite it shows in my Outllook calendar. But when I reject the invitation, the request still shows in the calendar and I manually have to delete that.
How to remove that. Do I have to handle some event for the same.
The JSON argumnet passed to CreateItem function is:
var ewsArgs = {
"attributes": {
"SendMeetingInvitations": "SendOnlyToAll"
},
"Items": {
"CalendarItem": {
"Subject": "Test Meeting: Please ignore",
"Body": {
"attributes": {
"BodyType": "Text"
},
"$value": "This is test meeting generated programatically using Node and Microsoft Exchange Web Service."
},
"ReminderMinutesBeforeStart": "15",
"Start": "2020-06-15T21:30:00.000",
"End": "2020-06-15T21:45:00.000",
"Location": "Desk",
"t:RequiredAttendees": {
"t:Attendee": {
"t:Mailbox": {
"EmailAddress": "******@myoutlook.com"
}
}
}
}
}
};
Community Center | Not monitored
1 answer
Sort by: Most helpful
-
Vahid Ghafarpour 23,585 Reputation points Volunteer Moderator2023-09-18T18:36:27.7266667+00:00