exchangewebservices

Office365 API - Accessing another users/room's calendars

寵の児 提交于 2019-11-30 04:56:53
I'm attempting to build an application that will have access to all of an organization's calendars (users, rooms, etc). Currently my auth flow will sign in on behalf of a tenant user and make use of refresh tokens to access needed resources. As soon as I make a request to: https://outlook.office365.com/api/v1.0/users/{room-resource@email}/events My application is responded with a 401 From my gathering, it seems that this flow is limited to a single user's scope. Although the tenant admin should have permission to see any of the room resources, the room is technically a user itself so the API

getting autodiscover URL from Exchange email address

放肆的年华 提交于 2019-11-30 04:49:39
I'm starting with an address for an Exchange 2007 server: user@domain.exchangeserver.org And I attempted to send an autodiscover request, as documented at MSDN . I attempted to use the generic autodiscover address documented at the TechNet White Paper . So, using curl on PHP, I sent the following request: <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"> <Request> <EMailAddress>user@domain.exchangeserver.org</EMailAddress> <AcceptableResponseSchema> http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a <

'Autodiscover service couldn't be located' when trying to access Exchange 2010 account with EWS MANAGED API

亡梦爱人 提交于 2019-11-30 04:19:11
I am using Auto discover service Url for a specified e-mail address. ExchangeService Service = new ExchangeService(ExchangeVersion.Exchange2010); Service.Credentials = new WebCredentials("username@domainname.com", "Password"); Service.AutodiscoverUrl("username@domainname.com"); Folder inbox = Folder.Bind(Service, WellKnownFolderName.Inbox); Console.WriteLine("The folder name is" + inbox.DisplayName.ToString()); If I do like this I'm gettin an error: The Autodiscover service couldn't be located What I have to do to avoid this error? You got Service.Credentials wrong, use it like this: Service

Get appointments from coworker via EWS only with “Free / Busy time, subject, location” permission level

北慕城南 提交于 2019-11-29 23:24:58
问题 I would like to get all appointments which are in a certain date range from my coworker by his email. I can access his calendar through outlook. I only want to know if he has set an appointment as "Free", "Busy" or "OOF". The code works with "Full Details" permission, but not with the "Free / Busy time, subject, location" permission level. My coworker shouldn't change the permission level to "Full details". It should stay on "Free/Busy time, subject, location" like this: I have the following

Getting started with Exchange Web Services 2010

北城以北 提交于 2019-11-29 19:54:17
I've been tasked with writing a SOAP web-service in .Net to be middleware between EWS2010 and an application server that previously used WebDAV to connect to Exchange. ( As I understand it, WebDAV is going away with EWS2010, so the application server will no longer be able to connect as it previously did, and it is exponentially harder to connect to EWS without WebDAV. The theory is that doing it in .Net should be easier than anything else... Right?! ) My end goal is to be able to get and create/update email, calendar items, contacts, and to-do list items for a specified Exchange account.

Office js Web Addin failing to ExpandDL with soap call

烈酒焚心 提交于 2019-11-29 17:08:11
问题 I'm currently working with an Outlook Web Add-in with Office.js. In this project, we require sending mail merge emails to handle Distribution Lists and Groups. We use the ExpandDL call and our soap request looks like: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org

set reply-to address in outgoing email EWS

泪湿孤枕 提交于 2019-11-29 16:20:36
Running Exchange 2013 I am using EWS in a c# service that sends emails from a service account. I want to have the emails have a reply-to address different than the sending account, a distribution list address. How can I do this? The EmailMessage.ReplyTo field is read only. Code: ExchangeService service = new ExchangeService(); service.Credentials = EWScredentials; service.Url = new Uri(string.Format("https://{0}/EWS/Exchange.asmx", ExchangePath)); EmailMessage message = new EmailMessage(service); message.ToRecipients.AddRange(receipients); //This didn't work message.ReplyTo.Clear(); message

Regular expression credit card search using Exchange Web Services?

拜拜、爱过 提交于 2019-11-29 15:33:58
I want to write a little app to scan employee's mailboxes and cleanse them of credit card numbers (people sometimes email them in unfortunately!) I've already got something that does this in Outlook, but it means setting up shared mailboxes and is a bit of a hassle. It seems that Exchange-side would be the best option. I'd like to use EWS, but it's search options are a bit limited (even if I want to get a set of potential candidate emails, I think I need 10 different filters to return emails with the numbers 0-9 in their body... and then to confirm/deny using regular expression in code!)

EWS get count of unread emails from all folders

做~自己de王妃 提交于 2019-11-29 14:55:33
问题 I'm trying to get number of unread emails from Exchange for specific user. I'm able to get number of emails from Inbox like so: SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And, new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false)); ItemView view = new ItemView(int.MaxValue); FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, sf, view); int unreadCount = 0; foreach (EmailMessage i in findResults) { unreadCount++; } label1

How to 'set' read-only calendar appointment properties (related to meetings)?

大憨熊 提交于 2019-11-29 12:48:29
I'm recreating calendar meeting events in a sychronization tool (using CreateItem ), basically preserving some properties for meetings and writing them back. However, there are some properties that are read-only, and I see no way to preserve their state: IsMeeting IsCancelled MeetingRequestWasSent IsOnlineMeeting Some of these boolean values are stored in property AppointmentState , but that is read-only too: Name Bit Description None 0x0000 No flags have been set. This is only used for an appointment that does not include attendees. Meeting 0x0001 This appointment is a meeting. Received