exchangewebservices

How to get all users form Exchange with EWS

雨燕双飞 提交于 2019-12-02 08:33:28
问题 I would like to get all users from xchange server with EWS. I have figured out how to get all rooms and all appointments. But I specifically need all users thus I can CRUD users from my application. Is this even possible? I did not find any example online. Please advise on how to achieve this. How would soap request look for user CRUD operations? 回答1: On Exchange 2013 and above you can use the FindPeople operation with the GUID of the address list you want to access (eg for the Global Address

Exchange calendar: Is ConversationId a good identifier of master events for FindItem occurrences?

让人想犯罪 __ 提交于 2019-12-02 07:37:13
I collect the appointments in an Exchange calendar with a SOAP FindItem call. This returns single events and (custom) occurrences of recurring events. When processing these I use GetItem to retrieve the ID of the master event for each occurrence ( ItemType = citOccurrence ). After that is done, I can determine if I still need to store the master event internally (and retrieve all its details), or if I have already done so. But with many occurrence of the same recurring event (especially with unending ones) in a longer FindItem period, this means having to do a lot of GetItem 'get master' calls

Exchange Web Services get Message Message-ID

烈酒焚心 提交于 2019-12-02 07:16:32
I'm using the Java EWS library to try to sync messages from an Exchange mailbox. I'm able to get a list off all new messages created since the last sync date, however, I would really like to find out the Message-ID property of the message before loading it from exchange. Background: I'm trying to integrate EWS sync into an existing mail storage system. The Message-ID identification is solely for performance reasons, as our system already has millions of messaged processed outside of EWS. Having to download them again would cause major performance overhead. //Sample code to fetch the message

Exchange calendar: Is ConversationId a good identifier of master events for FindItem occurrences?

筅森魡賤 提交于 2019-12-02 06:42:34
问题 I collect the appointments in an Exchange calendar with a SOAP FindItem call. This returns single events and (custom) occurrences of recurring events. When processing these I use GetItem to retrieve the ID of the master event for each occurrence ( ItemType = citOccurrence ). After that is done, I can determine if I still need to store the master event internally (and retrieve all its details), or if I have already done so. But with many occurrence of the same recurring event (especially with

EWS update changes time zone to UTC

天涯浪子 提交于 2019-12-02 05:54:03
问题 I've seen this question asked several times on the web, but cannot find an answer. When I create an appointment (meeting) using managed EWS 2.0, the invitation email correctly shows the time and time zone. When I update the meeting, the new invitation emails show the time in the UTC time zone. It is the correct time for UTC, but should display in Pacific. I have tried setting the zone when creating the service connection, but this makes the initial invitation also show the time zone as UTC,

Office 365 Rest API - Retrieving plain text Email

旧城冷巷雨未停 提交于 2019-12-02 05:54:03
问题 Is there currently anyway to with the Office 365 Rest APIs to retrieve the plain text part of an email message? From the API documents it states that the 'Body' object contains the 'ContentType' field which can either be Text or HTML . https://msdn.microsoft.com/office/office365/APi/complex-types-for-mail-contacts-calendar#ItemBody However whenever a multipart (HTML + plain text) message is retrieved the API only ever returns the HTML part as shown bellow: { "@odata.context": "", "@odata.id":

Save Email as MSG file without using Outlook (COM object, etc.) or 3rd party software

安稳与你 提交于 2019-12-02 05:29:42
Right now, I'm using the Exchange Web Services API with PowerShell to pull down specific emails from exchange and save them as EML files. This works great; however, the user/customer requires the emails to be in msg format. There are two ways that I've seen to do this: Use Outlook/Outlook COM Object Use a 3rd party library or software (like this: http://www.independentsoft.de/exchangewebservices/tutorial/downloadmessagetomsgfile.html ) Are there any other alternatives? I would like to stick with PowerShell if possible, but it seems like EWS might be limited to writing EML files. There is no

How to get all users form Exchange with EWS

三世轮回 提交于 2019-12-02 04:57:27
I would like to get all users from xchange server with EWS. I have figured out how to get all rooms and all appointments. But I specifically need all users thus I can CRUD users from my application. Is this even possible? I did not find any example online. Please advise on how to achieve this. How would soap request look for user CRUD operations? On Exchange 2013 and above you can use the FindPeople operation with the GUID of the address list you want to access (eg for the Global Address List you use the GAL's guid). <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http:/

How to specify EDT (daylight saving time) to Exchange Web Services (XML not managed)?

孤者浪人 提交于 2019-12-02 04:43:01
The article here: http://msdn.microsoft.com/en-us/library/exchange/bb738399(v=exchg.80).aspx in the section "Use Registry Key Names for TimeZoneNames", tells me that when I can create a calendar item in Exchange, I can pass it the name of a timezone. This is sort-of working, but how do I name "Eastern Daylight Time"? Only 'US Eastern Standard Time' is accepted as valid. In works in that I schedule something for say 14:00, when it displays in my Google calendar I see it is displaying at 15:00 EDT, so it used the EST timezone I passed in. Problem is that it sends out reminder emails with the

SOAP Message to EWS to create mail as regular mail, not draft

百般思念 提交于 2019-12-02 03:27:40
问题 In EWS, you can create a draft like this: <tns:CreateItem MessageDisposition="SaveOnly"> <tns:Items> <t:Message> <t:ItemClass>IPM.Note</t:ItemClass> <t:Subject>subject</t:Subject> <t:Body BodyType="HTML">body</t:Body> <t:IsRead>false</t:IsRead> </t:Message> </tns:Items> </tns:CreateItem> What do I need to add to create a regular message instead of a draft, as the code above does (using SOAP messages, not the Managed API)? 回答1: Setting the extended MessageFlags property did the trick! Has to