Change the Incident Template used by the Web Portal

The Web Portal allows end users to create Incidents. This is pretty cool because you can move to load for the Incident creation process away from the Service Desk people to the end users. If a new Incident is created, the Portal uses a specified Incident template called “Incident portal template” that will be applied to the newly created Incident. This template cannot be modified because it is stored in  sealed Management Pack. But what would be the steps to select another template to be applied? Just read on …

You can indeed change the Incident template that will be applied when new Incidents are generated from the portal. For that you have to download the portal source (details.aspx-displaylang=en&id=1983) and do some modifications there. First, you should read the guide that comes with the download. This is to understand the basic concepts of the portal source. Then, extract the portal source files that you need (either the original portal or the new version that is delivered with the portal source) and open the solution in Visual Studio. First make sure you have all the missing references fixed. Now open the file “Common\constants.cs” and search for “templateid”. You will find the “Incident id’s” section and an entry called “IncidentPortalTemplateID” that specifies the GUID of the Incident template that will be used. Just enter the GUID of your own template there.

image

If you don’t know what your GUID is, use the SMLets to find out. Just import the Powershell module and use the cmdlet “get-scsmobjecttemplate” to find your template and get the GUID. In my case, I created an Incident template called “itnetx portal template”.

image

After you changed the GUID in the constants.cs file, build the solution. Then check if the dll “Microsoft.EnterpriseManagement.ServiceManager.Portal.Common” has ben created in the folder “End User Portal”\bin”.

image

Copy this dll to the appropriate folder where the portal runs (on the Web Portal server) and overwrite the existing file. After that, connect to the portal and create a new Incident. This time the Incident should be created by using the your specified template.

regards
Marcel

About Marcel Zehner

Microsoft Azure MVP
This entry was posted in SCSM and tagged , , , , , , . Bookmark the permalink.

2 Responses to Change the Incident Template used by the Web Portal

  1. Alex says:

    hi Marcel,
    is it still valid for SCSM 2012 ?
    My need is to have different templates for different Incident classification.
    Reason about it depends on my Incident List classification is too long and I’ve like to avoid end user to scroll up & down it for selecting right value.
    so in my mind, I’ll hide that field, creating different Incident templates to link in homonimous Service Offering.
    Question is: can I create different template or portal uses ever only one ?

    • Marcel Zehner says:

      Hey

      2012 works completely different compared to the 2010 portal. The classification list cannot be “filtered”. A workaround could be creating a custom list that only contains some of the values. A SCSM Workflow or SCORCH runbook could then read that value und set the same value in the “real” incident classification field. You can create multiple offerings on the portal that use the same or different templates, this is flexible.

      Cheers
      Marcel

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s