ews-managed-api

EWS Managed API breaks Appointment HTML message body on update

淺唱寂寞╮ 提交于 2019-12-01 16:20:08
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 or web client. Okay, well, we can tailor the HTML to something that doesn't get eaten in the process

How to get Out of Office for another mailbox

大憨熊 提交于 2019-12-01 13:09:15
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 not belong to the mailbox making the request. Because of this I have tried to get the Out of Office

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

孤街浪徒 提交于 2019-11-30 21:09:34
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 the language of the end users (in our environment I encountered different languages returned by Exchange

'Autodiscover service couldn't be located' when trying to access Exchange 2010 account with EWS MANAGED API

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 12:57:15
问题 I am using Auto discover service Url for a specified e-mail address. ExchangeService Service = new ExchangeService(ExchangeVersion.Exchange2010); Service.Credentials = new WebCredentials("username@domainname.com", "Password"); Service.AutodiscoverUrl("username@domainname.com"); Folder inbox = Folder.Bind(Service, WellKnownFolderName.Inbox); Console.WriteLine("The folder name is" + inbox.DisplayName.ToString()); If I do like this I'm gettin an error: The Autodiscover service couldn't be

'Autodiscover service couldn't be located' when trying to access Exchange 2010 account with EWS MANAGED API

亡梦爱人 提交于 2019-11-30 04:19:11
I am using Auto discover service Url for a specified e-mail address. ExchangeService Service = new ExchangeService(ExchangeVersion.Exchange2010); Service.Credentials = new WebCredentials("username@domainname.com", "Password"); Service.AutodiscoverUrl("username@domainname.com"); Folder inbox = Folder.Bind(Service, WellKnownFolderName.Inbox); Console.WriteLine("The folder name is" + inbox.DisplayName.ToString()); If I do like this I'm gettin an error: The Autodiscover service couldn't be located What I have to do to avoid this error? You got Service.Credentials wrong, use it like this: Service

EWS: Access shared calendars

↘锁芯ラ 提交于 2019-11-29 10:24:00
I am trying to use Exchange Web Services to access calendar data, but I can't seem to figure out how to access calendars which have been shared by other users when it is not their default calendar. Assuming another user in my company created a shared calendar and shared it with me, I can't even find the calendar folder, let alone get the items within it. The answers can be in terms of the EWS Managed API (version 1.0 or 1.1), the service objects directly, or even just the XML body of the SOAP message that needs to be sent to the server. I just need some kind of starting point. Any help would

Error when I try to read/update the .Body of a Task via EWS Managed API - “You must load or assign this property before you can read its value.”

本小妞迷上赌 提交于 2019-11-28 21:06:19
I am using the Exchange Web Services Managed API to work with Tasks (Exchange 2007 SP1). I can create them fine. However, when I try to do updates, it works for all of the fields except for the .Body field. Whenever I try to access (read/update) that field, it gives the following error: "You must load or assign this property before you can read its value." The code I am using looks like this: //impersonate the person whose tasks you want to read Me.Impersonate(userName); //home-made function to handle impersonation //build the search filter Exchange.SearchFilter.SearchFilterCollection filter =

Exchange Web Services (EWS) API “To” header for alias

你。 提交于 2019-11-28 11:22:34
I have an inbox set up in exchange, hello@mycompany.com Additionally, there is an alias for this, news@mycompany.com , so all emails to the news address end up in the hello inbox. Ideally, I want to be able to tell which alias an email has been sent to, using EWS. When I send an email to news@mycompany.com , and examine the Internet headers of the message using Microsoft Outlook, the To: header reads To: Hello <news@mycompany.com> which is exactly what I want to see. However, using EWS, when I look at the ToRecipients property of the message, the reported email address is always that of the

Creating Tasks for other users using Exchange Web Services (EWS) Managed API

一曲冷凌霜 提交于 2019-11-28 06:35:43
As an "EWS Managed API Newbie", I'm having some problems finding examples and documentation about creating and managing Tasks. I've managed to create a task for myself without a problem. However, I really need to be able to do the following - if anyone could give me any pointers I'd really appreciate it... Create a Task and assign it to another user. Be able to interrogate the status of that task (percent complete, etc) whilst it is assigned to that user. Update the notes on the task at any time. Thanks in advance for any pointers! Chip McCormick The code in this post worked for me Pasting

EWS: Access shared calendars

不打扰是莪最后的温柔 提交于 2019-11-28 04:03:07
问题 I am trying to use Exchange Web Services to access calendar data, but I can't seem to figure out how to access calendars which have been shared by other users when it is not their default calendar. Assuming another user in my company created a shared calendar and shared it with me, I can't even find the calendar folder, let alone get the items within it. The answers can be in terms of the EWS Managed API (version 1.0 or 1.1), the service objects directly, or even just the XML body of the SOAP