exchangewebservices

Get all appointments of all users or get all appointments of one room

谁说我不能喝 提交于 2019-12-06 14:42:10
I would like to get all appointments giving a specific date peroid. I check the API, it seems only can get appointnments for a specific user? DateTime startDate = DateTime.Now; DateTime endDate = startDate.AddDays(365); const int NUM_APPTS = 5; // Initialize the calendar folder object with only the folder ID. CalendarFolder calendar = CalendarFolder.Bind(service, WellKnownFolderName.Calendar, new PropertySet()); // Set the start and end time and number of appointments to retrieve. CalendarView cView = new CalendarView(startDate, endDate, NUM_APPTS); // Limit the properties returned to the

php-ews class library always returns null

女生的网名这么多〃 提交于 2019-12-06 14:40:42
I am trying to make SOAP calls to our Exchange server using the classes I found here: http://code.google.com/p/php-ews/ I have coded up a few examples, starting with the basic example as below and no matter what I try and do this always returns null. $ews = new ExchangeWebServices('exchange.example.com', 'user', 'password'); $request = new EWSType_FindFolderType(); $request->Traversal = EWSType_FolderQueryTraversalType::SHALLOW; $request->FolderShape = new EWSType_FolderResponseShapeType(); $request->FolderShape->BaseShape = EWSType_DefaultShapeNamesType::ALL_PROPERTIES; $request-

How to get the Item ID of a mail item in Exchange 2010

一世执手 提交于 2019-12-06 14:29:24
问题 I am using Exchaneg Web Services in c# to retrieve all the emails from a mailbox on Exchange 2010. I am putting all the information for each email in a data table that is returned to the calling function. I also need the unique Item ID of each email so that after I am finished I can mark the email as Read on the Exchange box. I have tried this: // As a best practice, limit the properties returned to only those that are required. PropertySet propSet = new PropertySet(BasePropertySet.IdOnly,

PHP-EWS “Soap client returned status of 404”

十年热恋 提交于 2019-12-06 14:06:40
So, I'm using php-ews library to connect to my Microsoft Office 365 Exchange Email account to read emails. I've connected successfully to it and I have managed to retrieve a list of emails that I need. Now the problem is that I cannot get message body. Reading documentation about Exchange Web Services it says that body cannot be fetched with FindItem(), only with GetItem(), and that's okay. Now the problem I'm seeing is following: I tried all possible examples I could find about this, and the code doesn't have any errors, it just says "Soap client returned status of 404". If anyone has any

php-ews: Access shared calendars?

醉酒当歌 提交于 2019-12-06 14:05:32
问题 Using php-ews: https://github.com/jamesiarmes/php-ews I'm able to list events from my own calendar according to this example: https://github.com/jamesiarmes/php-ews/wiki/Calendar:-Get-List-(Retrieving-Id-and-ChangeKey) But after searching for a solution for a few hours I still haven't been able to find a way to access shared calendars. This question is similar, but has no answer: EWS: Access shared calendars From looking at that and various other search results (I've googled many variants of

Count the number of attendees, that have accepted a meeting with EWS

拟墨画扇 提交于 2019-12-06 13:02:08
I am struggling to count the attendees, who accepted the meeting invitation for a meeting over EWS. I am able to see the organisators meetings through impersonation and count the number of required attendees for the meeting. //Determine User to impersonat string impersonated_email = "user@domain"; service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, impersonated_email); //Bind User Calendar FolderId UserCalendarId = new FolderId(WellKnownFolderName.Calendar, impersonated_email); CalendarFolder UserCalendar = CalendarFolder.Bind(service, UserCalendarId); //

Meeting request properties not settable in EWS SOAP calls?

本小妞迷上赌 提交于 2019-12-06 12:41:27
问题 I (re)create (recurrent) events in Exchange Server talking to Exchange Web Services with pure SOAP calls. When these events are actually meeting requests I try to maintain some meeting properties that were previously retrieved, so I put them in the CreateItem call: AllowNewTimeProposal AppointmentReplyTime ConferenceType IsCancelled IsOnlineMeeting IsResponseRequested MeetingWorkspaceURL MeetingRequestWasSent MyResponseType NetShowURL Organizer OptionalAttendees RequiredAttendees Resources At

Sending inline attachments with ews

穿精又带淫゛_ 提交于 2019-12-06 11:47:34
问题 I'm using EWS to send an email with inline attachement(s). I'm use following code for it: var attachment = attachments.AddFileAttachment(path); attachment.ContentId = cid; attachment.IsInline = true; attachment.ContentType = "PNG/Image"; Html body of the message contains following fragment <img src=""cid:{cid}""></img> where {cid} is a value of cid field. It works when I check emails with Outlook but in OWA image is not show in message body. Please suggest me right way to send mail with

Exchange Web Services Attachment load is slow

冷暖自知 提交于 2019-12-06 11:02:58
I'm in the process of writing some code to download and process the attachments of email messages and then process them. The code is working as required in some cases, but still has some major problems. Whenever the code loads the attachment into a file on the local disk, it takes a very long time to do so and often times out with the following exception as a result of the slow download: A first chance exception of type 'Microsoft.Exchange.WebServices.Data.ServiceRequestException' occurred in Microsoft.Exchange.WebServices.dll I may be wrong, but if the exchange server in question is on the

How to specify content type in request in groovy?

依然范特西╮ 提交于 2019-12-06 10:06:05
i'm trying to use the groovy httpbuilder to make a post to the microsoft exchange webservice (EWS). My problem is, I'm unable to set the proper request content-type. The library seems to have its own mind here. Does anyone have an idea? Cheers, Stephan Here is my code: url = "http://exchangeserver/ews/Exchange.asmx" p_body = "<soap request >..."; p_contentType = "text/xml; charset=utf-8" customHeaders = ["SOAPAction":"LONG_URL"] def http = new HTTPBuilder(url); http.auth.basic(authMap.username, authMap.password) // contentType: p_contentType, http.request( POST ) { contentType = ContentType