c# - Can't Create Appointment in Office 365 Group Calendar using EWS -
i trying create appointment (not meeting) in office 365 group (unified group) calendar using exchange web service api following c# code.
exchangeservice service = new exchangeservice(exchangeversion.exchange2013_sp1); service.usedefaultcredentials = false; service.credentials = new networkcredential("admin@officedomain.com", "pwd"); service.url = new uri("https://outlook.office365.com/ews/exchange.asmx"); service.preauthenticate = false; appointment appointment = new appointment(service); // set properties on appointment object create appointment. appointment.subject = "tennis lesson"; appointment.body = "focus on backhand week."; appointment.start = datetime.now.adddays(2); appointment.end = appointment.start.addhours(1); appointment.location = "tennis club"; appointment.reminderdueby = datetime.now; folder rtfolder1 = folder.bind(service, new folderid(wellknownfoldername.calendar, "o365group@officedomain.com")); appointment.save(rtfolder1.id, sendinvitationsmode.sendtonone);
the calendar event created successfully. problem is, created meeting , not appointment. see in above code didn’t add attendee, when open group calendar event in owa shows credential user (admin@officedomain.com) attendee , force me not uncheck option “send invitation group” shown in below image.
can me overcome problem?
Comments
Post a Comment