exchangewebservices

EWS : Appoitnment Item.Id.UniqueId is not constant

試著忘記壹切 提交于 2019-12-01 06:41:12
There is a weird problem I'm facing when working with EWS Managed API 2.0 with Exchange Server 2007 SP3. When I create an appointment and I save it, I get its ID using the following code : appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy); appointment.Id.UniqueId; and I store it in my local DB so I can later use it to update the meeting or cancel it. Later when I want to retrieve the conflicting meetings I use the following code : CalendarView view = new CalendarView(Start, End); view.PropertySet = new PropertySet(); Folder rootfolder = Folder.Bind(service, WellKnownFolderName

searchFilter not working properly with EWS FindItems method call

人盡茶涼 提交于 2019-12-01 06:21:58
问题 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

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

两盒软妹~` 提交于 2019-12-01 05:54:48
问题 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

Exchange Webservice Managed API - Find items by extended properties

不打扰是莪最后的温柔 提交于 2019-12-01 05:29:06
I have tried to use extended properties on appointments with EWS, but I can not seem to find the appointments again. The set property part is equal to the one shown in this question: How to Update an Appointment from Exchange Web Service Managed API 2.0 in ASP.NET When I try to retrieve the appointment, I have followed these examples: http://msdn.microsoft.com/en-us/uc14trainingcourse_5l_topic3#_Toc254008129 http://msdn.microsoft.com/en-us/library/exchange/dd633697(v=exchg.80).aspx But I never get any appointments returned when I make a lookup. Here is the code for the lookup: ItemView view =

GetRoomLists succeeds but returns no data

懵懂的女人 提交于 2019-12-01 05:24:00
I am calling GetRoomLists using Exchange Web Services, we are running Exchange 2010. The below code is being executed through a Console application. The call succeeds, per the XML response of "No Error", but no data is returned. We have several hundred rooms listed when you try to add one through an Outlook Appointment, so not sure why this would happen. I've tried using both EWS DLL version 1.2 and 2.0, using default credentials or passing in credentials. I noticed after originally posting this that the response header says we are using Exchange 2012 SP2, so I tried updating my code to use

Should I use GUID or DefaultExtendedPropertySet.PublicStrings while constructing ExtendedPropertyDefinition?

十年热恋 提交于 2019-12-01 04:23:50
I am developing C# .NET Framework 4.5 Windows Form application using EWS Managed API 1.2 with Exchange Server 2007 which performs some sort of syncing of mails. Now that I am dealing with Extended Properties, I want to be clear some things: Q1. What is the purpose of DefaultExtendedPropertySet class? MSDN says "Defines the default sets of extended properties." Is it just to group the extended properties? If yes, why is the grouping there at first place? Do we have any Ews API method which can fetch values of all extended properties belonging to the same group on an item? Q2. I am unable to

Set CustomProperties on appointment for all attendees

此生再无相见时 提交于 2019-12-01 04:20:28
tl;dr When setting CustomProperties to an appointment that has attendees, only the appointment for the organizer gets the CustomProperties . The properties do not propagate to the appointments of the other attendees. Longer version When we create an appointment with multiple attendees and then log in as each attendee, we notice that each ItemId is different. So, it appears that each attendee in a meeting gets their own copy of an appointment. (Would really like someone to confirm this is true). However, when setting a custom property from our add-in (using the Outlook JavaScript API), only the

read email using exchange web services

血红的双手。 提交于 2019-12-01 03:43:14
This is my scenario: I have to read email from exchange 2010 sp2 accounts. I have to use Exchange Web Services, POP3 and IMAP are blocked. I have to test my app in an environment where people can access their accounts through a web browser only in the intranet. I can't debug my app directly to this intranet. I have this snippet to access an account: private void Dowork() { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); string dominio = "domain"; string usuario = "user"; string password = "password"; service.Credentials = new NetworkCredential(usuario, password

Getting Exchange Appointments by ICalUid?

∥☆過路亽.° 提交于 2019-12-01 03:25:25
So I'm creating Exchange (2007) Appointments with a given ICalUid: var app = new Appointment(svc); app.ICalUid = id; app.Subject = "Test Appointment"; app.Recurrence = new Recurrence.DailyPattern(DateTime.Now, 3); app.RequiredAttendees.Add("mstum@example.com"); app.AllowNewTimeProposal = false; app.Body = new MessageBody(BodyType.HTML, "This is a <b>Test!</b>"); app.Save(); Later on, I would like to update that appointment, at which point I need to find it through the ICalUid. However, there seems to be no way to do that? I can use Appointment.Bind only against the Exchange ID, which I don't

Should I use GUID or DefaultExtendedPropertySet.PublicStrings while constructing ExtendedPropertyDefinition?

怎甘沉沦 提交于 2019-12-01 02:51:21
问题 I am developing C# .NET Framework 4.5 Windows Form application using EWS Managed API 1.2 with Exchange Server 2007 which performs some sort of syncing of mails. Now that I am dealing with Extended Properties, I want to be clear some things: Q1. What is the purpose of DefaultExtendedPropertySet class? MSDN says "Defines the default sets of extended properties." Is it just to group the extended properties? If yes, why is the grouping there at first place? Do we have any Ews API method which can