ews-managed-api

EWS : Lifetime of Synchronization State cookie

…衆ロ難τιáo~ 提交于 2019-12-25 06:36:01
问题 I am using the SyncFolderItems operation to synchronize my calendar folder. What is the lifetime of the Synchronization State cookie returned by the SyncFolderItems call? If I use a 40-day old SyncState string (saved in the DB from an earlier call) in the SyncFolderItems Call, will I get back the 40 days worth of data? Or will that Sync State have expired? Also, is SyncState string valid between different versions of Exchange server? (2007 and 2010) ? 回答1: Andy- A 40-day old SyncState string

EWS : Lifetime of Synchronization State cookie

旧巷老猫 提交于 2019-12-25 06:35:24
问题 I am using the SyncFolderItems operation to synchronize my calendar folder. What is the lifetime of the Synchronization State cookie returned by the SyncFolderItems call? If I use a 40-day old SyncState string (saved in the DB from an earlier call) in the SyncFolderItems Call, will I get back the 40 days worth of data? Or will that Sync State have expired? Also, is SyncState string valid between different versions of Exchange server? (2007 and 2010) ? 回答1: Andy- A 40-day old SyncState string

EWS Managed APIs in iOS

雨燕双飞 提交于 2019-12-25 01:55:12
问题 I'm developing an iOS app where it requires to use EWS managed APIs. I've searched the web thoroughly but I'm not getting any success. It requires to get and set user's profile information, i.e. User's display name, company name, phone number etc. 回答1: EWS Managed API is for Windows desktop apps only. You can use Exchange Web Service SOAP endpoint directly. Although it will be little tedious to handle xml based requests/responses but do-able. Take a look at this channel9 talk: Developing

How I can update a contact item in Exchange Web Api

不打扰是莪最后的温柔 提交于 2019-12-24 15:33:10
问题 I try to update a contact property in EWS with an empty string but it fails. I have no idea why. // works fine contact.Company = "SomeCompany"; contact.Update(ConflictResolutionMode.AlwaysOverwrite); // failed in Update with a service response exception contact.Company = ""; contact.Update(ConflictResolutionMode.AlwaysOverwrite); I try null and string.Empty but its the same effect. What am I doing wrong? 回答1: Are you sure there is a Company property on the Contact type? I only see a

How to reply to an email using the EWS Managed API?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 13:31:11
问题 I have created an application that uses the EWS Managed API 2.2. This application uses pull notifications to get new emails and saves a copy of the email in a database. Then in the application I want to get the email from database and reply to it. In order to reply to the message, I need to retrieve it from EWS using the ItemId I have stored in my database. Of course I can create a new EmailMessage and send it but then the new email will have a different ConversationId which is not acceptable

Exchange Appointment Types

只谈情不闲聊 提交于 2019-12-23 10:07:36
问题 I use the following code to save an appointment via Exchange Web Services Managed API: Appointment appointment = new Appointment(m_exchangeService); appointment.Subject = subject; appointment.Body = body; appointment.Start = start; appointment.End = end; appointment.Save(); When I do this the Appointment is created as a 'meeting' in Outlook. But I just want to have it as normal Appointment not a meeting. How do i do this? 回答1: I found an answer. The following code creates a normal nonmeeting

How can I reduce EWS calls when downloading attachments from an Inbox?

半城伤御伤魂 提交于 2019-12-23 04:13:06
问题 I wrote this method with much help from StackO , but I've been unable to find an a was to improve on this. Right now, I iterate through each message in an Office 365 inbox, traverse its attachment collection, and save each file to disk if it's an Excel workbook. This is currently working, but results in a ton of calls to Exchange. The inbox size can get pretty large, and this takes a long time to run as a result, with each call clocking in at around 0.5 seconds. If I've counted right, the

How do I get folder size with Exchange Web Services 2010 Managed API?

给你一囗甜甜゛ 提交于 2019-12-22 06:00:54
问题 I'm attempting to use EWS 2010 Managed API to get the total size of a user's mailbox. I haven't found a web service method to get this data, so I figured I would try to calculate it. I found one seemingly-applicable question on another site about finding mailbox sizes with EWS 2007, but either I'm not understanding what it's asking me to do, or that method just doesn't work with EWS 2010. Noodling around in the code insight, I was able to write what I thought was a method that would traverse

Techniques for integrating an ASP.NET intranet app with the Outlook calendar

时光总嘲笑我的痴心妄想 提交于 2019-12-21 12:20:11
问题 I can ignore the braying of my users no longer. They want a task scheduling system and at some point I have to deliver. I was thinking of making my own (can't be hard), but then users would have two side-by-side task managements systems since they already use Outlook for the same thing. In terms of Outlook calendar / task integration, two possible approaches occurred to me: 1) Use JavaScript and Automation I seem to remember it's possible to do automation in JavaScript. PROS: I've done

Using EWS Managed API to create appointments for other users?

点点圈 提交于 2019-12-20 18:42:18
问题 In EWS Managed API is it easy to create an appointment for a specific user: ExchangeService service = new ExchangeService(); service.Credentials = new NetworkCredentials ( "administrator", "password", "domain" ); service.AutodiscoverUrl(emailAddress); Appointment appointment = new Appointment(service); appointment.Subject = "Testing"; appointment.Start = DateTime.Now; appointment.End = appointment.Start.AddHours(1); appointment.Save(); This will create a appointment for the administrator. But