exchangewebservices

How can I use web app with EWS managed API for office 365?

夙愿已清 提交于 2019-12-12 06:29:07
问题 With c#; I am able to use access_token generated with native app to request EWS managed api for office 365. I am trying to use access_token generated with web app . This is failing at service.AutodiscoverUrl('mailid', delegate(string url){return true}) and getting error ' The Autodiscover service couldn't be located. '. I am using following code to generate access_token using web app. string authority = "https://login.windows.net/common/oauth2/authorize"; string serverName = "https://outlook

Converting Folder ID from EWS to Exchange Cmdlet's Identity

此生再无相见时 提交于 2019-12-12 05:48:21
问题 Using Managed EWS 2.0, I'm trying to write some code to create, delete and mail-enable Public Folders on Exchange 2010. However, according to Exchange MVP Glen Scales, mail-enabling a folder is only possible using PowerShell cmdlets, which can be invoked from my C# code. So far, so good. However, I'm a bit confused when mapping between my EWS Folder objects (which have a FolderId) and PowerShell's Enable-MailPublicFolder cmdlet, which expects a GUID or a Folder Path as identity parameters. I

EWS - Given an Appointment, get the owner's copy of the Appointment

我怕爱的太早我们不能终老 提交于 2019-12-12 05:41:14
问题 Given an Appointment in EWS, is it possible to get the owner's copy? For instance, if I am logged in as user1 , I have user1 's copy of an Appointment that was created by user2 , I have impersonation rights, and I want to edit user2 's copy of the Appointment, how can I obtain user2 's copy? 回答1: You can use the PidLidCleanGlobalObjectId https://msdn.microsoft.com/en-us/library/office/cc839502.aspx which will be set on both the Meeting invitation/update and the Appointment object to search

Cannot retrieve any room list from Exchg 2013 with c#

筅森魡賤 提交于 2019-12-12 05:09:58
问题 My exchange services works. I can see all rooms by Outlook and Can see all rooms through Powershell. But with this snippet I cannot retrieve any room ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); service.UseDefaultCredentials = true; service.Url = new Uri("https://my server/ews/exchange.asmx"); service.AutodiscoverUrl("username@myserver.com", RedirectionCallback); EmailAddressCollection myRoomLists = service.GetRoomLists(); // Display the room lists. foreach

Querying Exchange Web Service gives Bad Request (400) with WildFly and Apache CXF

两盒软妹~` 提交于 2019-12-12 04:59:30
问题 I have a problem while querying the Microsoft Exchange Server WebServices to get Items in certain folders. In this order, I can make a request to the method expandDL and to the method findFolders . These work fine. But when I then make a request to findItems with all the found folders, I get 400 Bad Request with no error message. I think this question is related to Querying Exchange Web Services fails with 400 Bad Request I am using a WildFly 10 and Java 1.8. Apache CXF is used as framework

Windows User getting “access denied” from exchange server

北城余情 提交于 2019-12-12 04:07:49
问题 I have a MVC Web Application makes use of Windows Authentication and Exchange Web Services. While in development, this worked great, since the application pool in IIS on my development machine is set to run under my windows user and the Exchange Server is on the same domain. On the web server, though, all our applications are set to run under a system user that has access to all the database servers etc. The database connection uses Integrated Security, so I cannot impersonate a user over an

Getting “Cannot resolve the OData request URL.” for specific users on REST item update call

时间秒杀一切 提交于 2019-12-12 03:24:00
问题 I getting the "Cannot resolve the OData request URL." when making call like this: PATCH https://outlook.office365.com/api/v1.0/users('user@domain.com')/messages/this-long-item-id Problem that actually works only for user for which i provided explicit consent earlier. For two other users i can't provide individual consent because i updated the app to use the one-time administrative consent with permissions "allow read all mailboxes in organization" and "allow write all emails in organization"

Fetch only text from email html body

拜拜、爱过 提交于 2019-12-12 02:27:49
问题 I'm using Exchange Service in c# to receive an email. I'm using the following code: var service = new ExchangeService { Credentials = new WebCredentials("somename", "somepass"), Url = new Uri("someurl") }; FindItemsResults <Item> findResults = service.FindItems(WellKnownFolderName.Inbox,new ItemView(1)); var item = findResults.Items[0]; item.Load(); return item.Body.Text; It returns body in html. Is there any way i could get text only instead of html, i don't need html tags. Or should i parse

EWS error when updating an item Category

送分小仙女□ 提交于 2019-12-12 01:35:45
问题 I get the following error when calling the Update() method on an Item in my VB .Net application using EWS (logged on to Exchange 2007 SP1): Property update did not succeed What could be the cause? I'm really hoping this is not due to EWS requiring Exchange 2010 to update categories on an item. The only update I made to the item was to Add a category. EDIT: Also, the following code, which makes a copy of the message and updates its category works fine. So it looks like it's only changing the

EWS error: Exceeded maximum count of 1000 items that can be deleted in a single request

非 Y 不嫁゛ 提交于 2019-12-11 23:43:38
问题 i am using EWS Exchange Sync, and in one of my methods, it's saying that i exceeded maximum count of 1000 items that can be deleted in a single request. Can this be solved by instead of deleting everything from the calendar, we only delete from today and onwards, instead of deleting back in time? The method responsible for the error is here: public void DeleteAllSafeAppointments(SCDriftConnection conn, ExchangeService service, SAFEAgent agent) { if(conn == null) throw new