ews-managed-api

Using EWS Managed API to create appointments for other users?

孤者浪人 提交于 2019-12-20 18:41:47
问题 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

EWS-managed: Fetch required and optional attendees of appointments

左心房为你撑大大i 提交于 2019-12-20 01:46:39
问题 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

EWS-managed: Fetch required and optional attendees of appointments

二次信任 提交于 2019-12-20 01:46:03
问题 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

EWS Managed API breaks Appointment HTML message body on update

☆樱花仙子☆ 提交于 2019-12-19 16:54:35
问题 I'm using EWS Java 1.2, although 2.0 in C# shows the exact same issues, and Exchange 2010 SP3, so a particular bug in SP2 prior to rollup 3 regarding message bodies is not the problem. Long story short: EWS + Exchange = pain. Using EWS in Exchange, you can create an Appointment. You can specify that the message body of the Appointment be HTML and give it a bunch of HTML to go with it. This will do some kind of HTML -> RTF conversion that wrecks the HTML when you view it in an Outlook desktop

How to get Out of Office for another mailbox

只愿长相守 提交于 2019-12-19 11:50:36
问题 I'm trying to get the Out of Office settings for a given mailbox by using EWS/EWS Managed API 2.0. The setup is the following; a single "service account/mailbox" reads other mailbox calendars and Out of Office settings. The calendar part is easy using the EWS Managed API, but I can't seem to figure out how to get the Out of Office settings by using the API. The API has a method called GetUserOofSettings(string smtpAddress) but this returns access denied if the caller the given smtpAddress do

Can't retrieve Appointment.StartTimeZone through EWS Managed API on Exchange 2007 SP1

不羁的心 提交于 2019-12-19 03:16:18
问题 I can retrieve the Appointment.TimeZone for items with: PropertySet propertiesAll = new PropertySet(BasePropertySet.IdOnly, ..., AppointmentSchema.TimeZone, AppointmentSchema.StartTimeZone, ...); ServiceResponseCollection<ServiceResponse> response = Exchange.LoadPropertiesForItems(items, propertiesAll); But not Appointment.StartTimeZone which returns null. Appointment.TimeZone is string and seems to be comparable to DisplayName of TimeZoneInfo objects, but unfortunately this seems to be in

Exchange EWS Managed API 2.0 get by date

六眼飞鱼酱① 提交于 2019-12-13 18:07:08
问题 Im using EWS Managed API to communicate between my c# project and our Exchange 2010 server. I use this code to get all mails in the inbox from now and three days back. var ews = new ExchangeService(ExchangeVersion.Exchange2010_SP1); ews.Credentials = new NetworkCredential(usr, psw, dmn); ews.AutodiscoverUrl(url); PropertySet itempropertyset = new PropertySet(BasePropertySet.FirstClassProperties); itempropertyset.RequestedBodyType = BodyType.Text; ItemView view = new ItemView(int.MaxValue);

What's the cause for “PR_INTERNET_REFERENCES is too large and requires streaming” when using EWS Managed API?

有些话、适合烂在心里 提交于 2019-12-13 02:43:51
问题 An application uses EWS Managed API to fetch and process large quantities of Exchange items. The items are loaded using ExchangeService.LoadPropertiesForItems(items, propertySet) . During the items' processing, when a property of an item is being accessed, the following exception is thrown: Microsoft.Exchange.WebServices.Data.ServiceResponseException: Data is corrupt., The object data is corrupted. The value of property [0x1039001f] PR_INTERNET_REFERENCES is too large and requires streaming.

Where can find any info on EWSCore project

大城市里の小女人 提交于 2019-12-12 05:19:40
问题 https://www.nuget.org/packages/EWSCore/ Google delivers nothing but this link (everything else is not relevant). Can I rely on this in my projects as Microsoft.Exchange.WebServices.dll replacement? The lib seems to contain the same types as Microsoft.Exchange.WebServices.dll (everything builds fine) and incorporates bugfixes from https://github.com/OfficeDev/ews-managed-api but it lacks SHA digital signatures. And any docs.. 回答1: Looks like it has no connection with Microsoft (despite

Windows User getting “access denied” from exchange server

北城余情 提交于 2019-12-12 04:07:49
问题 I have a MVC Web Application makes use of Windows Authentication and Exchange Web Services. While in development, this worked great, since the application pool in IIS on my development machine is set to run under my windows user and the Exchange Server is on the same domain. On the web server, though, all our applications are set to run under a system user that has access to all the database servers etc. The database connection uses Integrated Security, so I cannot impersonate a user over an