exchangewebservices

EWS Managed API: Fetch emails by search filter on DateTimeReceived

吃可爱长大的小学妹 提交于 2020-01-06 02:42:06
问题 While searching for items in the inbox that have been received after a particular time frame (as mentioned in the code below). It searches for the date but it is also returning the email with the specified timestamp. I want the emails only after the specified timestamp. SearchFilter greaterthanfilter = new SearchFilter.IsGreaterThan(ItemSchema.DateTimeReceived, Convert.ToDateTime(lastUploadedEmailtimeStamp)); mailItems = inbox.FindItems(greaterthanfilter, view); Not sure if anyone has faced

php-ews Access Global Address Book

浪子不回头ぞ 提交于 2020-01-05 11:12:47
问题 I'm working with the php-ews library to integrate with exchange. I was wondering if there was any way to access the global address book, I've searched the documentation and nothing comes up. I would like to access it so I can view room resources. Thanks 回答1: I don't think that the GetRooms method was ever added to php-ews. It seems they just quit development. see.. https://github.com/jamesiarmes/php-ews/issues/91 As a workaround, if your rooms exist in Active Directory, you could do an LDAP

EWS - ServerVersionInfo Version attribute in responses

為{幸葍}努か 提交于 2020-01-05 09:34:44
问题 According to this: http://msdn.microsoft.com/en-us/library/dd633705(v=exchg.80).aspx In each EWS response, the version of Exchange that generated the response is indicated by the ServerVersionInfo element. The following example shows a ServerVersionInfo element that represents a response from Exchange 2010 SP1. The example on that page has: Version="Exchange2010_SP1" I'm currently working with an Exchange Online account, and the value I'm seeing in EWS server responses is: <?xml version="1.0"

EWS 'account that does not have a mailbox' error on IIS

泄露秘密 提交于 2020-01-05 04:41:05
问题 I'm developing an intranet webpage for coorparation(I use windows authentication). Via this website users can see their mailbox. For this, I use EWS and everything works perfect on IISExpress. However when I publish to IIS server(which is on my computer) it gives this error: "When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids". CODE: ExchangeService service = new ExchangeService(ExchangeVersion

Exchange Web Service: BindToItems method returning error

无人久伴 提交于 2020-01-05 00:03:16
问题 I have a method which pulls appointments from the Exchange calendar. The BindToItems method, which is currently pulling appointment from six months ago until six months in the future, fails with certain windows of time. It will pull some appointments but reports an error (no more details are given). Is there a way to see more details about the error, or does anyone see any problems with my code (below). // Set the start and end time and number of appointments to retrieve. Microsoft.Exchange

Exchange Web Service: BindToItems method returning error

你说的曾经没有我的故事 提交于 2020-01-05 00:01:49
问题 I have a method which pulls appointments from the Exchange calendar. The BindToItems method, which is currently pulling appointment from six months ago until six months in the future, fails with certain windows of time. It will pull some appointments but reports an error (no more details are given). Is there a way to see more details about the error, or does anyone see any problems with my code (below). // Set the start and end time and number of appointments to retrieve. Microsoft.Exchange

Convert comma separated string to datetime

吃可爱长大的小学妹 提交于 2020-01-04 13:45:37
问题 The Exchange webservice has a method that takes the DateTime in the format below appointment.Start = new DateTime(2014, 03, 04, 11, 30, 00); I have a string which is formed by concatenating various fields to form the date my string is as below: string date="2014,03,04,11,00,00" But if i try to to parse my string as the date it gives the error "String was not recognized as a valid DateTime". DateTime.Parse(date) 回答1: You can use DateTime.ParseExact : string date = "2014,03,04,11,00,00";

How to read extended properties from Outlook contacts using EWS

好久不见. 提交于 2020-01-04 04:33:29
问题 I'm currently attempting to read certain properties from Outlook Contact objects through Microsoft's EWS managed API. I retrieve these Contact objects from the FindItems() function. Some of these fields are extended properties such as the Title or User1 field and I'm having difficulty reading them. At the moment, I have: Guid propertySetId = new Guid("{00062004-0000-0000-C000-000000000046}"); ExtendedPropertyDefinition titleProp = new ExtendedPropertyDefinition(propertySetId, 0x3A45,

EWS - how do I find all incomplete tasks?

那年仲夏 提交于 2020-01-04 03:52:08
问题 I am using Exchange Web Services to try to get a list of all Outlook tasks which are not complete. I have an instance of ExchangeService, and attempt to find all incomplete tasks like this: SearchFilter searchFilter = new SearchFilter.IsNotEqualTo(TaskSchema.Status, TaskStatus.NotStarted); FindItemsResults<Item> tasks = service.FindItems(WellKnownFolderName.Tasks, searchFilter, view); However, on the last line, I get a "ServiceResponseException: The specified value is invalid for property."

EWS: Exchange Web Service. Calling ResolveName multiple Times - Perfomance Hit (of course)

怎甘沉沦 提交于 2020-01-03 17:43:29
问题 Hi Stackoverflow community, I am loading all Exchange Outlook Contacts from ones Outlook Account via EWS. Unfortunately, when a Contact's Email-Address is inside of our own Active Directory, it gets converted into a different format (/o=...;ou=...;cn=...). To convert this into a regular email-address, i am using the ResolveName Method of the EWS-Service Object. Now the problem: I am looping through all Items of the result of FindItems to map the returned data onto my own C# Classes. Inside of