exchangewebservices

Bind custom extended property for existing appointment using EWS managed API 2.0

醉酒当歌 提交于 2019-12-31 03:26:11
问题 I want to make unique appointment to put in database using custom extended properties. I find all appointments using FindAppointments(): var appointments = _service.FindAppointments(WellKnownFolderName.Calendar, calendarView); and than i go trough all appointments using foreach loop: foreach (var appointment in appointments) for all appointments which doesn't have extended property: if (appointment.ExtendedProperties.Count <= 0) i bind a custom extended property and setting its value with

Exchange Impersonation in Service Account: Autodiscover service couldn't be located

自闭症网瘾萝莉.ら 提交于 2019-12-31 02:15:31
问题 Sending a simple email through ews is working as intended - from my account to my account: ExchangeService ews = new ExchangeService(ExchangeVersion.Exchange2010); ews.AutodiscoverUrl("myname@mydomain.com"); EmailMessage email = new EmailMessage(ews); email.ToRecipients.Add("myname@mydomain.com"); email.Subject = "HelloWorld"; email.Body = new MessageBody("This is the first email I've sent by using the EWS Managed API"); email.Send(); Simply trying impersonation, it is also working as

EWS : Appoitnment Item.Id.UniqueId is not constant

好久不见. 提交于 2019-12-30 10:21:49
问题 There is a weird problem I'm facing when working with EWS Managed API 2.0 with Exchange Server 2007 SP3. When I create an appointment and I save it, I get its ID using the following code : appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy); appointment.Id.UniqueId; and I store it in my local DB so I can later use it to update the meeting or cancel it. Later when I want to retrieve the conflicting meetings I use the following code : CalendarView view = new CalendarView(Start, End);

EWS : Appoitnment Item.Id.UniqueId is not constant

风流意气都作罢 提交于 2019-12-30 10:21:07
问题 There is a weird problem I'm facing when working with EWS Managed API 2.0 with Exchange Server 2007 SP3. When I create an appointment and I save it, I get its ID using the following code : appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy); appointment.Id.UniqueId; and I store it in my local DB so I can later use it to update the meeting or cancel it. Later when I want to retrieve the conflicting meetings I use the following code : CalendarView view = new CalendarView(Start, End);

Office365 API - Accessing another users/room's calendars

邮差的信 提交于 2019-12-30 00:58:12
问题 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

Office 365 Rest API - Daemon week authentication

时光毁灭记忆、已成空白 提交于 2019-12-28 02:06:40
问题 I am trying to build a Ruby Daemon service to access the Office 365 rest API. It was recently made possible to do this via the OAuth 'client_credentials' flow, as detailed in this blog post: http://blogs.msdn.com/b/exchangedev/archive/2015/01/22/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx I am struggling to generate a valid access token. The token endpoint returns me a JWT however when using this token I received a 401 with

EWS FindItems not working

元气小坏坏 提交于 2019-12-25 17:04:33
问题 I have place items on the calender (in the past), however the FindItems() call is coming back with 0 results. Screenshot to show there are meetings scheduled for this Room Mailbox for the desired date Code for the search SearchFilter greaterthanfilter = new SearchFilter.IsGreaterThanOrEqualTo(ItemSchema.DateTimeReceived, start); SearchFilter lessthanfilter = new SearchFilter.IsLessThan(ItemSchema.DateTimeReceived, end); SearchFilter filter = new SearchFilter.SearchFilterCollection

EWS FindItems not working

老子叫甜甜 提交于 2019-12-25 17:01:31
问题 I have place items on the calender (in the past), however the FindItems() call is coming back with 0 results. Screenshot to show there are meetings scheduled for this Room Mailbox for the desired date Code for the search SearchFilter greaterthanfilter = new SearchFilter.IsGreaterThanOrEqualTo(ItemSchema.DateTimeReceived, start); SearchFilter lessthanfilter = new SearchFilter.IsLessThan(ItemSchema.DateTimeReceived, end); SearchFilter filter = new SearchFilter.SearchFilterCollection

Download all email messages via EWS

若如初见. 提交于 2019-12-25 16:36:16
问题 I currently want to download all email messages (regardless in which folder they're in) to my SQL Server database. Now while I know how to search for email messages or subscribe to streaming notifications, I've yet to learn on how to synchronize all messages from EWS to my database. var emailMessages = GetItems<MSEmailMessage>(WellKnownFolderName.MsgFolderRoot); foreach (var emailMessage in emailMessages) { Debug.WriteLine(emailMessage.Subject); } private IList<T> GetItems<T>

Exchange Webservices Create Reply Incorrect Sent Datetime timezone

陌路散爱 提交于 2019-12-25 14:22:27
问题 I have an application that automates email communications between my companies service desk and customers. When the application needs to reply to an existing email, i use FindItems to get the email and then i load the properties i need, then i use (CreateReply) to get the response email i need to send. The strange behavior is as follows: The email i need to reply to has a correct SentDateTime and timezone (+4 GMT) but when i create a reply from it the sent date of the "replied to email"