ews-managed-api

Mapping Office365 REST Calendar IDs to EWS CalendarItem IDs

烈酒焚心 提交于 2019-12-05 10:39:09
问题 Using Exchange push notifications I've been creating a service that syncs over calendar data from Office365 users. I've been using a combination of the Office365 Calendar REST API (to get and manage calendars) and the EWS API (to subscribe to calendar changes). I noticed that just recently MS has introduced a preview API for their subscription endpoints. However, this API is still in preview mode and I'd like to avoid using it for the time being. Once I have everything setup, the problem is I

Techniques for integrating an ASP.NET intranet app with the Outlook calendar

风格不统一 提交于 2019-12-04 04:59:56
I can ignore the braying of my users no longer. They want a task scheduling system and at some point I have to deliver. I was thinking of making my own (can't be hard), but then users would have two side-by-side task managements systems since they already use Outlook for the same thing. In terms of Outlook calendar / task integration, two possible approaches occurred to me: 1) Use JavaScript and Automation I seem to remember it's possible to do automation in JavaScript. PROS: I've done automation before. CONS: Automation is horrible! Some persistence (Outlook entities) is the responsibility of

Can we connect to Exchange 2016 using EWS Managed API?

自闭症网瘾萝莉.ら 提交于 2019-12-04 03:35:02
I am using EWS Managed API 2.2 and it does not show the Exchange version 2016 in its enumeration. I can see the versions upto Exchange 2013. So how can I connect to Exchange Server 2016? Is the API, yet to be updated from Microsoft or do I need to use any other API's to connect to Exchange 2016 ? It will connect just fine. You don't need to set the version to match the server, you set the version to indicate the lowest level of service you support. 来源: https://stackoverflow.com/questions/34774101/can-we-connect-to-exchange-2016-using-ews-managed-api

Mapping Office365 REST Calendar IDs to EWS CalendarItem IDs

匆匆过客 提交于 2019-12-04 00:19:55
Using Exchange push notifications I've been creating a service that syncs over calendar data from Office365 users. I've been using a combination of the Office365 Calendar REST API (to get and manage calendars) and the EWS API (to subscribe to calendar changes). I noticed that just recently MS has introduced a preview API for their subscription endpoints. However, this API is still in preview mode and I'd like to avoid using it for the time being. Once I have everything setup, the problem is I can't make a correlation between the calendar event resource (REST) and the EWS CalendarItem resource

Using EWS Managed API to create appointments for other users?

不想你离开。 提交于 2019-12-03 12:36:49
In EWS Managed API is it easy to create an appointment for a specific user: ExchangeService service = new ExchangeService(); service.Credentials = new NetworkCredentials ( "administrator", "password", "domain" ); service.AutodiscoverUrl(emailAddress); Appointment appointment = new Appointment(service); appointment.Subject = "Testing"; appointment.Start = DateTime.Now; appointment.End = appointment.Start.AddHours(1); appointment.Save(); This will create a appointment for the administrator. But say I wanted to actually create an appointment for another user (not add that user as an attendee to

Bind custom extended property for existing appointment using EWS managed API 2.0

送分小仙女□ 提交于 2019-12-02 00:48:48
I want to make unique appointment to put in database using custom extended properties. I find all appointments using FindAppointments(): var appointments = _service.FindAppointments(WellKnownFolderName.Calendar, calendarView); and than i go trough all appointments using foreach loop: foreach (var appointment in appointments) for all appointments which doesn't have extended property: if (appointment.ExtendedProperties.Count <= 0) i bind a custom extended property and setting its value with unique meeting id (meetingId) which i specialy generated to be uniqe int number: var myPropertySetId = new

EWS-managed: Fetch required and optional attendees of appointments

依然范特西╮ 提交于 2019-12-01 21:33:37
As far as I am now, I know how to fetch appointments from exchange server, BUT as soon as I want to see the required and optional attendees, these fields are empty ... I checked the appointment trice and there is an attendee, except me. Do I have to config Outlook differently or do I miss something? List<Appointment> listOfAppointments = new List<Appointment>(); CalendarFolder cfolder = CalendarFolder.Bind(MyService, WellKnownFolderName.Calendar); CalendarView cview = new CalendarView(from.ToUniversalTime(), to.ToUniversalTime()); cview.PropertySet = new PropertySet(ItemSchema.Subject); cview

How to set the contact title using Exchange Web Services Managed API

自古美人都是妖i 提交于 2019-12-01 21:04:27
问题 I'm trying to create a new contact using the EWS API. I can set all the values i needed except the contact title property. I tried the code: oContact = new Contact(oService); oContact.GivenName = "John"; oContact.Surname = "Doe"; oContact.Displayname = oContact.Surname; // set the title property as extended property // reference: http://msdn.microsoft.com/en-us/library/gg274394.aspx ExtendedPropertyDefinition oTitleProp = new ExtendedPropertyDefinition( new Guid("{00062004-0000-0000-C000

Exchange Web Service managed, get deleted appointments

限于喜欢 提交于 2019-12-01 16:32:31
I am about to write a ews-application to connect exchange with another calendar programm. What occured to me, how do I get to know, which appointments get deleted on exchange? Is there a way to tell? I couldn't find it in the API and documentation. Thanks in advance. Depending on how a user deletes an appointment (or any item), different things are done: Soft-Delete: The item is moved to the recycle bin of the mailbox. Hard-Delete: The item is instantly removed. You have multiple ways to get information about deleted items: Query the folder using a FindItems call and select ItemTraversal

Exchange Web Service managed, get deleted appointments

瘦欲@ 提交于 2019-12-01 16:29:57
问题 I am about to write a ews-application to connect exchange with another calendar programm. What occured to me, how do I get to know, which appointments get deleted on exchange? Is there a way to tell? I couldn't find it in the API and documentation. Thanks in advance. 回答1: Depending on how a user deletes an appointment (or any item), different things are done: Soft-Delete: The item is moved to the recycle bin of the mailbox. Hard-Delete: The item is instantly removed. You have multiple ways to