Exchange Server 2007 SP1, Outlook Web Access Customization: Part 2, UIExtensions.xml
I’ve seen a few cases come through where customer’s are trying to implement the customization features that were introduced with Exchange Server 2007 SP1. There’s a few key areas that seem to cause trouble so I figured it would be worth walking through a simple scenario that covered many of the different aspects. (Link to Part 1 of the series)
We continue our effort to implement our HelpTicket Outlook Web Access form by adding an element to the UIExtensions.xml file in the C:\Program Files\Microsoft\Exchange Server\ClientAccess\Owa\forms\Customization directory. This file allows you to make a few different types of customizations (all covered in more detail here), but the one that we are interested in is the inclusion of a new element in the New dropdown in the OWA Interface like so:
The following example UIExtensions.xml file only contains the minimum tags needed for our scenario, but there is a “.template” version of the file in the Customization directory that has samples for the other customization types as well.
<?xmlversion="1.0" encoding="UTF-8" ?> <OWAUICustomizations> <NewItemMenuEntries> <NewItemMenuEntry ItemType="IPM.Note.HelpTicket" Icon="ticket.gif"> <stringlanguage="en-us" text="New Helpdesk Ticket"/> </NewItemMenuEntry> </NewItemMenuEntries> </OWAUICustomizations>
|
Note: the Icon attribute of the NewItemMenuEntry tag specifies the icon to utilize and Exchange looks for this file in the directory where the UIExtensions.xml file is located. To be consistent with the other icons this should be a 16x16 square image that can be displayed in a browser, such as a .gif, .jpg, or .png.
Place the UIExtensions.xml and your ticket.gif files into C:\Program Files\Microsoft\Exchange Server\ClientAccess\Owa\forms\Customization and restart IIS with “iisreset /noforce” and you should have a new element in the “New” dropdown in OWA.
Just like for the Registry.xml file, the Event viewer is the best place to start if you are troubleshooting a problem with UIExtensions.xml. OWA does not write an entry for a successful read of UIExtensions.xml, but you will see an error EventId 72 with a source of MSExchange OWA if there is an error parsing this file, similar to this:
If you have completed the steps from Part 1 and also put in place a dummy NewHelpTicket.ASPX file (this can just be a text or html file saved in the directory referenced in Part 1), then you should be able to launch the form by clicking the “New Help Ticket” item in the New dropdown in OWA.
In Part 3 of this series we will look at building the NewHelpTicket.ASPX file and using Exchange Web Services to create a new mail item to represent our helpticket.