exchangewebservices

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

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

Create an email using EWS Exchange and attach another email

北慕城南 提交于 2019-12-01 13:21:44
问题 I'm having trouble attaching an email to a new email using EWS. So i have the Microsoft.Exchnage.Webservice.Data.Item in my findResults. If I find an issue in the form data of the email then I want to attach that item to a new email and send it to a supervisor for manual input. I have tried; EmailMessage newMessage = new EmailMessage(exchange); newMessage.Subject = "Failed lead creation"; ItemAttachment attachment = new ItemAttachment("New Lead", message); I can't seem to create the

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

How to Update an Appointment from Exchange Web Service Managed API 2.0 in ASP.NET

旧时模样 提交于 2019-12-01 12:57:21
iam using the EWS Managed API 2.0 to create an Appontment. It works fine. But want to Update an existing Appointment, too. I read that i need the appointment ID to specify which appoint should be edited. But where is the ID? Here is how i create an Appointment: 'Creates the Appointment Dim appointment As New EWS.Appointment(esb) appointment.Subject = txtThema.Text appointment.Body = txtBemerkung.Text appointment.Start = Von appointment.End = Bis appointment.Location = lbRaumInfo.Text 'Adds the Attendees For i = 1 To emaillist.Length - 1 appointment.RequiredAttendees.Add(emaillist(i)) Next

Automatically moving all mails belonging to same conversation thread to external folder

不想你离开。 提交于 2019-12-01 12:30:15
Hi I have Exchange Server 2007 setup with some users with their own inbox. Since this is all related to office conversations I want to move all the incoming and outgoing mails belonging to same conversation thread to disk folder (any folder on his machine say D:\Conversation1 ). I am able to let user create separate disk folder for each conversation and let him move first mail in conversation to this folder. So that is not the problem now. Also I have written a web app which when provided the conversation ID returns the corresponding disk folder path. However now what I want is to process all

Access Outlook user properties from EWS

最后都变了- 提交于 2019-12-01 09:43:17
I'm trying to create an application that use the EWS api to access contacts. I need to look at one of the outlook user properties in this process but I cant see how to get it at using EWS. At the moment ive just tried... service.Url = new Uri("https://url/ews/Exchange.asmx"); service.Credentials = new WebCredentials("credentials"); var results = service.FindItems(folderId, new ItemView(100)); foreach (var item in results) { Contact contact = item as Contact; foreach (var prop in contact.ExtendedProperties) { Console.WriteLine(prop.Value.ToString()); } } Which compiles and executes without a

EWS Create Appointment in exchange with extra custom properties

江枫思渺然 提交于 2019-12-01 09:08:29
问题 Im currently looking at a way to save a few extra properties to an exchange appointment using C#. Currently I can save using the following properties: Appointment calendar = new Appointment(p_service); calendar.Subject = calendarS5Subject; calendar.Body = calendarS5Body; calendar.Start = calendarS5StartDateTime; calendar.End = calendarS5EndDateTime; calendar.IsReminderSet = false; calendar.Location = calendarS5Location; calendar.Body.BodyType = BodyType.Text; calendar.Save(); However I want

Exchange 2010 Web Services - creation of an all day event appointment

允我心安 提交于 2019-12-01 09:01:36
I got in trouble with creation of an all day event appointment using Exchange 2010 Web Services (EWS) . According to existing requirements to create an All day event appointment object needs to have specified start and end time (i.e. 10/20/2011 12:00:00 AM), and also timezone. But my application converted to use EWS instead of WebDAV sets start and end time converted to GMT (Greenwich) time which then sent to Exchange server. Such technique worked perfectly with WebDAV. But with EWS I get weird result: appointment spans on 3 (three) days, and is NOT All day event appointment !!! My mailbox

searchFilter not working properly with EWS FindItems method call

五迷三道 提交于 2019-12-01 08:01:13
I Am using a SearchFilter collection to restrict what emails are returned by a request to an Exchange 2010 mailbox using EWS. I have no problem connecting to the service, and opening the mailbox. The problem is that my searchFilter is being ignored, and all the emails are being returned by the request to EWS. Here is my code: static void Main(string[] args) { ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; //creates an object that will represent the desired mailbox Mailbox mb = new Mailbox(@"bbtest@bocuk.local"); // Find all items where the body