exchangewebservices

searching Exchange mailbox by email address using SearchFilterCollection

。_饼干妹妹 提交于 2019-12-13 04:42:37
问题 I am searching an email inbox (on Exchange 2010) using Exchange Web Services. In my SearchFilterCollection I would like to include the From.Address property of the Email message, as I only want to retrieve emails that include a certain domain (such as @domain.co.uk) here is my code: SearchFilter.SearchFilterCollection searchFilterCollection = new SearchFilter.SearchFilterCollection(LogicalOperator.And); searchFilterCollection.Add(new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false));

401 Unauthorized when trying to send emails from EWS Managed API

蓝咒 提交于 2019-12-13 03:47:55
问题 Ok so I am developing an addin which must automatically send emails to others. I know that office-js does not have permissions to do so and I have started using EWS Managed API. I have implemented SSO token and I get it with: Office.context.auth.getAccessTokenAsync() After I get the token I make a request call to my server where I have my EWS Managed API and try to send an email with the folowing code: ExchangeService exService = new ExchangeService(); exService.Url = new Uri(ewsUrl);

How to get a channelId from an exchange item created for MSTeam team messages?

爷,独闯天下 提交于 2019-12-13 03:25:55
问题 Messages in MSTeam appears in group/team mailbox in Conversation History > Team Chat folder. In case of a team/channel message,I didn't see an attribute to determine channelID a message item is associated with. The subject of the message item have channelname (for channel other than general) but channelname can change. So subject is not reliable to derive the channel info. Is there any attribute to retrieve the channelId given a msteam message item in exchange. Here is the MS TEAM named test1

What's the cause for “PR_INTERNET_REFERENCES is too large and requires streaming” when using EWS Managed API?

有些话、适合烂在心里 提交于 2019-12-13 02:43:51
问题 An application uses EWS Managed API to fetch and process large quantities of Exchange items. The items are loaded using ExchangeService.LoadPropertiesForItems(items, propertySet) . During the items' processing, when a property of an item is being accessed, the following exception is thrown: Microsoft.Exchange.WebServices.Data.ServiceResponseException: Data is corrupt., The object data is corrupted. The value of property [0x1039001f] PR_INTERNET_REFERENCES is too large and requires streaming.

Exchange web service set organizer of the appointment

微笑、不失礼 提交于 2019-12-13 02:24:04
问题 When I use Service account to add a new appointment, the organizer always the user of Credentials to Exchange service, I want to set the organizer to another user, but the organizer property is readonly, how can I achieve that? var appointment = new Appointment(_service.ExchangeService); if (exchangeAppointment.Participants.Any() && exchangeAppointment.Participants != null) { foreach (var participant in exchangeAppointment.Participants) { appointment.RequiredAttendees.Add(participant); } }

Exception thrown: 'Microsoft.Exchange.WebServices.Data.ServiceResponseException' in Microsoft.Exchange.WebServices.dll

无人久伴 提交于 2019-12-13 00:50:09
问题 I'm trying to learn using EWS API. I want to retrieve all the appointments from my calendar. I used the following technique to get the appointments: CalendarFolder folder = CalendarFolder.Bind(service, WellKnownFolderName.Calendar); CalendarView view = new CalendarView(startDate, endDate); FindItemsResults<Appointment> results = folder.FindAppointments(view); Assume that the startDate and endDate are given. My code keeps crashing at WellKnownFolderName.Calendar And I get this exception:

EWS: Calendar Sharing Invitation and Extended Properties

♀尐吖头ヾ 提交于 2019-12-12 13:43:38
问题 Ok, so far the best information I have gotten regarding this topic was on this thread: EWS-API-Create-Calendar-and-Share-with-reviewer-permissions. I tried asking this question on that thread but I actually posted it as an answer so it was removed by the admins (my bad!) DISCLAIMER: I am a sysadmin by trade and moonlight in development...so please excuse any misuse of terminology or confusions in verbage. Also, I'm working in C# here fyi. I have read the message protocol specs from microsoft

Can I use the Microsoft Exchange 2013 API from Java?

非 Y 不嫁゛ 提交于 2019-12-12 13:06:56
问题 Can I work with the EWS of Exchange 2013 from Java? I found that the 2013 version of EWS doesn't is supported by the Java EWS API. 回答1: The EWS API is a SOAP-based API, and therefore yes, you can use it from Java or any other language that lets you POST XML data over HTTP. The commercial JWebServices component mentioned in another answer is a library that wraps the SOAP calls for you into helper functions. Microsoft's EWS Java library does appear to be updated infrequently, but it's free, so

Find all subfolders of the Inbox folder using EWS

前提是你 提交于 2019-12-12 10:36:34
问题 I have the following Inbox folder structure: Inbox --ABC ----ABC 2 ----ABC 3 --XYZ ----XYZ 2 --123 ----123 A ----123 B ----123 C I am using Exchange Web Services and the following code to find the child folders of the Inbox folder: ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); service.AutodiscoverUrl("MyName@MyDomain.com"); Mailbox mb = new Mailbox("MyName@MyDomain.com"); FindFoldersResults findResults = service.FindFolders( WellKnownFolderName.Inbox, new

How to specify content type in request in groovy?

让人想犯罪 __ 提交于 2019-12-12 09:59:36
问题 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