exchangewebservices

get meeting organizer mail address EWS API

偶尔善良 提交于 2019-12-08 19:57:21
问题 I would like to get the meeting organizer mail address with the EWS API. Currently I'm just getting the a few properties of my appointment item. I heard that you can set which properties you want to get. My code looks like that: CalendarView cview = new CalendarView(start, end); cview.PropertySet = new PropertySet(BasePropertySet.FirstClassProperties); FindItemsResults<Appointment> appResults = calenFolder.FindAppointments(cview); 回答1: I had the same issue and managed to populate the

How to fetch email headers with Office 365 Mail REST APIs?

試著忘記壹切 提交于 2019-12-08 19:46:40
问题 I can't seem to find a way to fetch raw RFC 2822 email headers from the message resource https://msdn.microsoft.com/office/office365/APi/complex-types-for-mail-contacts-calendar#RESTAPIResourcesMessage All the standard headers To, From, Subject are available. How do I get a list of headers[] other than the standard once such as "Received", "Delivered-To", etc.. Is this feature not yet supported? 回答1: Igor - Office 365 REST API doesn't currently support returning the RFC 2822 email headers.

ServiceId.UniqueId Maximum Length and Format

我们两清 提交于 2019-12-08 16:29:22
问题 Every Item (e.g. Task) in Exchange Web Services (EWS) Managed API has an Id property of type ItemId, which then has a String property named UniqueId (inherited from ServiceId — phew, got that?). I'm planning to keep the value of UniqueId in a database so I need to know what the maximum length of the column should be. Some testing shows that it's at least 152 bytes in length, but that seems like a strange size for a maximum. A second part to this question is the format of the value. Is this

Outlook web add-in autentication failure for on-premise exchange

杀马特。学长 韩版系。学妹 提交于 2019-12-08 13:27:29
问题 I use Office.js 's getCallbackTokenAsync to load the token to pass to the backend. In the backend, I use EWS to retrieve the email data. Here is how I perform the authentication. ExchangeService service = new ExchangeService(); service.Url = new Uri(ewsUrl); //retrieved from getCallbackTokenAsync service.Credentials = new OAuthCredentials(ewsToken);// retrieved from getCallbackTokenAsync It works well in exchange online enviroment. However when tested in on-premise exchange server, I got this

Exchange ErrorInvalidClientAccessTokenRequest

喜欢而已 提交于 2019-12-08 13:09:35
问题 I built an Outlook Add-in and it uses a token to download email attachments from the Exchange server. On my O365 developer account, it successfully retrieves the token. The Add-in has been deployed to the client's Outlook but when they try to retrieve the token, this is the response message: MessageText:"The token for this extension could not be retrieved. "ResponseClass:"Error" ResponseCode:"ErrorInvalidClientAccessTokenRequest" Token:null __type:"GetClientAccessTokenResponseMessage:

Retrieving mails from a remote Exchange Server. Some sort of security issue

对着背影说爱祢 提交于 2019-12-08 12:54:49
问题 This code works on my local with Exchange hosted a VM, but not when trying to recieve mails from the clients Exchange server. The point is to check a mailbox, extract details, start a workflow and attach email and any other attachments in the email, and move the email from the Inbox folder to my custom folder 'Saved'. This all works on my local machine. These are the errors I get: The request failed. The underlying connection was closed: An unexpected error occurred on a send. Inner Exception

Azure AD app-only access tokens for exchange impersonation

不打扰是莪最后的温柔 提交于 2019-12-08 09:41:57
问题 I have been following this resource to create an application on azure that authenticates itself with the azure active directory. We want to use the token from this auth interaction with exchange and the EWS managed API to impersonate everyone in our organization, without them having to login. I have registered an app with our organization on azure and gave it permission to exchange. After creating a certificate and setting up our azure application with it, I can get an app-only access token

Why I can't make HttpWebRequest working with NTLM authentication

寵の児 提交于 2019-12-08 09:16:23
问题 I'm trying to call EWS from MonoTouch like in this snippet: byte[] bytes = Encoding.UTF8.GetBytes("... some xml here ..."); HttpWebRequest req = WebRequest.Create("https://owa.site.com/ews/exchange.asmx") as HttpWebRequest; req.Method = "POST"; req.KeepAlive = true; req.ContentType = "text/xml"; req.ContentLength = bytes.Length; req.AuthenticationLevel = AuthenticationLevel.MutualAuthRequested; CredentialCache ch = new CredentialCache(); ch.Add(req.RequestUri, "Negotiate", new

Office 365 / EWS Authentication using OAuth: The audience claim value is invalid

百般思念 提交于 2019-12-08 08:36:57
问题 I'm still struggling with this. Please see my previous question for details. I am doing an application (currently command line) which should access Office 365/Exchange through EWS Managed API. The goal is to authenticate through OAuth2. I have registered an application in Azure AD. I have used the ClientID from there I generated an App Secret / Key I have delegated the "Have full access to a users' mailbox (preview)" permissions to the App. I am using ADAL to retrieve the Access Token like

EWS 401 Unauthorized - But only when running under a service on the target server

折月煮酒 提交于 2019-12-08 08:32:15
问题 I have written a windows service in C# to automatically poll an exchange mailbox using EWS. On my development machine, which is connected to the exchange server network via VPN, it works perfectly. On the target server the EWS is returning Request failed. The remote server returned an error: (401) Unauthorized.(The remote server returned an error: (401) Unauthorized.) On the same server, I can connect to the EWS URL via a browser using the same credentials as are being provided to the service