exchangewebservices

Get the organizer's calendar appointment using EWS for Exchange 2010

大城市里の小女人 提交于 2019-11-29 02:05:36
I have an synchronization application with sync appointments with Exchange 2010, and i have some questions. UserA creates an appointment and add UserB as attendee, this means UserA is the organizer of the appointment and UserB outlook calendar will have an appointment entry created. UserA and UserB calendar appointment will have their own IDs (UniqueID). If for example i am only given the ID (UniqueID) of UserB's calendar appointment, is that a method to retrieve UserA's calendar appointment? Because i think they should be some link between the organizer and the attendees appointment, i just

Exchange Web Service FolderId for a not well known folder name

落花浮王杯 提交于 2019-11-29 01:11:38
I have a folder in an Exchange mailbox that is a child of the root (not Inbox). How do I get the ID of such folder using EWS Managed API? Only examples I find are those relating to WellKnownFolderNames. You can find all Folders with the FindFolders Method. Use WellKnownFolderName.Root it will show all your folders of your Inbox. You have to create a FolderView an add the properties which you want to see ( ID and DisplayName for example). Set the travesal to deep in order to find all of your folders. In my example I'm looking for the folder with the displayName "Test" //set Server

How to get contact list from Exchange Server?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 21:28:58
Can anyone tell me the simplest way to get a contact list from Exchange Server? I'm using C# From what I found out, Exchange Web Services only exists for Exchange Server 2007 and beyond. That would be my first option, but I'd also like an alternative for previous versions of Exchange (WebDav or something). Directory Services is not an option. This is how to get the contact list from your contacts list in exchange using EWS. I'm not sure how to get contacts from the global list yet, only looked at the API an hour ago. private static void ListContacts(ExchangeService svc) { foreach (var v in svc

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 server version “V2_22” returned for Office 365 breaks pattern - consequences?

江枫思渺然 提交于 2019-11-28 14:32:50
I just notice that talking to Office365 Exchange Web Services at https://outlook.office365.com/ews/exchange.asmx I get this in my SOAP response header: <Envelope> <Header> <ServerVersionInfo MajorVersion="15" MinorVersion="0" MajorBuildNumber="1049" MinorBuildNumber="23" Version="V2_22"/> </Header> This means that the Version 'schema version' property now breaks the pattern of versions that we had earlier: Exchange2007, Exchange2007_SP1, Exchange2010, Exchange2010_SP1, Exchange2010_SP2, Exchange2013 In the schema files I found through Google (searching for <xs:simpleType name=

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

Regular expression credit card search using Exchange Web Services?

与世无争的帅哥 提交于 2019-11-28 10:42:15
问题 I want to write a little app to scan employee's mailboxes and cleanse them of credit card numbers (people sometimes email them in unfortunately!) I've already got something that does this in Outlook, but it means setting up shared mailboxes and is a bit of a hassle. It seems that Exchange-side would be the best option. I'd like to use EWS, but it's search options are a bit limited (even if I want to get a set of potential candidate emails, I think I need 10 different filters to return emails

set reply-to address in outgoing email EWS

守給你的承諾、 提交于 2019-11-28 10:26:17
问题 Running Exchange 2013 I am using EWS in a c# service that sends emails from a service account. I want to have the emails have a reply-to address different than the sending account, a distribution list address. How can I do this? The EmailMessage.ReplyTo field is read only. Code: ExchangeService service = new ExchangeService(); service.Credentials = EWScredentials; service.Url = new Uri(string.Format("https://{0}/EWS/Exchange.asmx", ExchangePath)); EmailMessage message = new EmailMessage

Get all contacts from exchange server

这一生的挚爱 提交于 2019-11-28 09:57:27
问题 I want to get all users from Exchange server, I don't want to get user's contacts. In fact, I want to get all AD users as Active Directory which we can't connect to. mExchangeService.ImpersonatedUserId = new ImpersonatedUserId { Id = "jack@aa.com", IdType = ConnectingIdType.SmtpAddress }; var contacts = _mExchangeService.FindItems(new FolderId(WellKnownFolderName.Contacts),new ItemView(1000)); I can above code to get user's contact, but that's not I want, I want use a service account to get

Exchange web services: why is ItemId not constant? [continued]

ⅰ亾dé卋堺 提交于 2019-11-28 09:19:20
as some others have discuss this problem before (e.g., Exchange web services: why is ItemId not constant? ), I want to talk about the solution, I have done what people have suggested by stamping the Guid as an extended property, For me this solution is kind of nice (although I do not know how to make it work with the occurrences) but only as long as the application works, once the application restarts the extended properties of the items disappear, so my problem now, is “ How to stamp the extended property on the EWS item and make it constantly there? ” This is the code of updating the