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.

enter image description here

can me overcome problem?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -