EMEA Developer Support for Messaging Team Blog

Messaging Developer code samples and documentation

Browse by Tags

Tagged Content List
  • Blog Post: EWS: Missing SOAP headers when using the EWS Managed API

    We’ve recently had a few cases where some SOAP headers were missing from the request when performing specific operations and targeting specific Exchange versions. This resulted in incorrect data being returned. For example, if you Target Exchange2010 or higher and wish to reply to or forward an EmailMessage...
  • Blog Post: EWS: Performance issues when accessing multiple mailboxes?

    We've had a few cases come through over the past few months regarding slow performance against Office Online from an EWS service application. Several of them have come down to a very simple .Net setting that isn't necessarily obvious. In fact, I first hit the issue myself when creating a streaming notification...
  • Blog Post: PowerShell: Search public folders for items of a particular message class (ItemClass)

    In addition to the mailbox search script , I have also written a sample script showing how to do the same search against public folders. It works in exactly the same way, but iterates public folder tree instead of the mailbox. The EWS Managed API needs to be installed on the machine running the script...
  • Blog Post: PowerShell: Search mailbox for items of a particular message class (ItemClass)

    The Search-Mailbox cmdlet can be used to perform various searches within a mailbox, and while it serves many needs, there are some searches that it can't do. I wrote a PowerShell script to demonstrate how to perform a search of a mailbox (or mailboxes) using EWS, in this case looking for items of a particular...
  • Blog Post: EWS: Streaming Notifications and Exchange 2013 (and Office 365 Wave 15)

    Exchange 2013 introduced a new affinity model which means that streaming subscriptions to multiple mailboxes need to be handled in a different way to earlier versions. If you are connecting to a single mailbox, you shouldn't have a problem, but you most likely will encounter issues if you are connecting...
  • Blog Post: EWS: Hide a named folder in multiple mailboxes

    Recently we've had a couple of requests that involved deleting or hiding mailbox folders that are created automatically either by Outlook or Lync. Deleting such folders is usually both not supported and also not possible - they will most likely be marked as distinguished folders, which means that they...
  • Blog Post: EWS: Streaming Notification Sample

    To complete my unintentional series on EWS notifications, I have written a sample application showing how to deal with streaming subscriptions. The application includes full logging of both events and EWS calls, so is very useful for troubleshooting. The screenshot below shows the application in action...
  • Blog Post: EWS: Push Notification Sample

    I wrote a sample application quite a while ago showing how to write a push notification client using WCF. This seemed a little complex to me, and I have now got another sample that uses the managed API and a custom listener (taken from SOAPe ) to respond to the notifications. The listener form has been...
  • Blog Post: PowerShell: Set Calendar folder delegate permissions in Exchange 2007

    Exchange 2010 has cmdlets ( Add-MailboxFolderPermission , Set-MailboxFolderPermission ) that allow an administrator to update folder permissions on a user's calendar. Unfortunately, Exchange 2007 does not have these cmdlets. We recently had a case that required updating many mailboxes (in this case resource...
  • Blog Post: PowerShell: Clean mailbox delegates

    An updated version of this script (that also handles the hidden forwarding rule) is available here: http://blogs.msdn.com/b/emeamsgdev/archive/2014/05/16/powershell-clean-mailbox-delegates-update.aspx Granting delegate access to a mailbox stores the permission on the mailbox to which the permission...
  • Blog Post: EWS from a Web Application using Windows Authentication and Impersonation

    To augment an earlier blog post that describes how to use EWS in a SharePoint webpart without needing ApplicationImpersonation, here I will go through the steps needed to do this from a standard web application. The scenario is that a web application (hosted on a standalone application server) needs...
  • Blog Post: Exchange Web Services and SharePoint without ApplicationImpersonation

    A question that I have seen crop up quite a bit on the internet is how to use EWS with a SharePoint webpart. Using EWS is quite easy, as you can simply reference the managed API and use that - but the main implementation headache is how to set up authentication. A lot of customers do not want to use...
  • Blog Post: PowerShell: Script to set holiday status to busy (or OOF, free, etc.)

    As you may or may not know, Outlook has a facility to import known public holidays. However, currently while these holidays will be imported into the Outlook calendar, the status of these holidays is set to Free. An often received request is for advice on how to change this status to Busy, or OOF. If...
  • Blog Post: EWS Managed API: How to remove Email1, Email2, Email3 from a contact

    An interesting case recently asked how to remove Email1, Email2, and/or Email3 from a contact using the EWS Managed API. If you try to set any of these properties to null, or an empty string, then you will receive an error when sending the request to Exchange (i.e. when you call Update()). There are...
  • Blog Post: How to change the default item type of a folder (VBScript and OOM, or EWS)

    It is possible to change the default item type of Outlook folders, and this is commonly done when custom forms are being used. The question came up recently asking whether it is possible to do this programmatically, and it certainly is. The default item type of a folder is stored in a single MAPI...
  • Blog Post: PowerShell: Script to import calendar items into Exchange mailbox from CSV file

    A recent case brought up the question of whether it is possible to import calendar items into a mailbox from a text file using PowerShell. While there aren't any cmdlets built-in that support this, it is certainly possible to implement this using PowerShell and the EWS Managed API. Sample script is attached...
  • Blog Post: EWS Application: Disable OWA 2010 Conversation View

    Exchange 2010 OWA Folder View Settings are stored in a MAPI property and are customizable per folder. Conversation View is enabled by default in OWA 2010 and even if you disable it on the existing folders, new folders you create will always have Conversation View enabled. The property that stores...
  • Blog Post: Using Exchange Web Services from VBScript: Sending a message with attachment example

    With Exchange 2010, CDO and all the other APIs that were commonly used from VBScript (e.g. WebDAV) are no longer supported. The only scriptable API is EWS. While it is relatively easy to use EWS using the managed API, this is not possible from VBScript. However, programming with EWS from VBScript can...
  • Blog Post: Test Applications (SOAP and Webdav)

    I have now published SOAPe, the SOAP (EWS) test application that I previously blogged about up to Codeplex. Documentation and updates will follow in due course. http://soape.codeplex.com/ I have also written a WebDAV test application that works in a very similar way, but supports WebDAV verbs...
  • Blog Post: SOAPe: SOAP Test Application (with EWS tools)

    We sometimes get cases where EWS is being used from a language we don't support (e.g. Java). In such cases, we can support the actual SOAP conversation (i.e. the raw requests/responses between the client and EWS). To do this, we need to have the actual SOAP requests, and more importantly an application...
  • Blog Post: EWS Impersonation in a Mixed 2007/2010 Environment

    The question came up recently whether one user account can be used to impersonate all mailboxes in an environment consisting of Exchange 2007 and 2010 servers. As most people realise, there have been huge changes to the permissions structure between the two versions (2010 introducing RBAC), so can we...
Page 1 of 1 (21 items)