简体   繁体   中英

Save Outlook appointment in Resource Calendar without notification

using EWS, creating an AppointmentItem and adding a resource too. The Appointment get added to Resource Calendar and an email notification goes to Resource Inbox.

But i don't want any email notification just want to get added to Calendar.

I tried using SendInvitationsMode.SendToNone but it then doesn't add in Calendar even.

then i tried using
Mailbox mbox = new Mailbox(user);
FolderId folder = new FolderId(WellKnownFolderName.Calendar, mbox);
appointment.Save(folder);
but then it send email notification too besides adding in Calendar.

So, What I want is: "get added in Calendar but don't send me notification".

SendInvitationsMode.SendToNone is the correct way to no add a notification.

Try not sending to a folder, but to WellKnownFolderName.Calendar

appointment.Save(WellKnownFolderName.Calendar, SendInvitationsMode.SendToNone);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM