Custom Incident Form

Hi,

I try to create a custom Incident form in Visual Studio to replace the default Incident form in SCSM console. Unfortunately my new form does not load when creating a new Incident, instead it always opens the default Incident form. I tried to link the form to various Incident TypeProjections like System.WorkItem.Incident.ProjectionType for example. I also tried to link the form to the Incident class itself which did not work either.

<Form ID="customforms.incident" Accessibility="Public" Target="SMIML!System.WorkItem.Incident.ProjectionType" Assembly="customforms.assembly" TypeName="customforms.IncidentForm">
    <Category>Form</Category>
</Form>

However when I link the form to another custom class or TypeProjection I created, everything works as expected and the form loads when creating a new object of this class from console. So it seems that there is no error in my MP and/or custom form...

Maybe someone can point me to the right direction.

Thanks for your help!

March 31st, 2013 8:28pm

What you're trying to do is override the default Incident form. This, unfortunately, is not supported yet (not that I've heard, anyway).

There is an unsupported workaround, though. In your ServiceManager database in the Form table, change the "FormTarget" column for the incident form to a different target guid. I recommend choosing a guid from a row "higher" in that table. (When you do a select * from Form, pick a row that shows up before the incident form row..and replace the incident form's formtarget guid with that one. There's no guarantee that will work, so you may have to experiment with different guids, but you must pick a formtarget guid that exists..otherwise you might get some very unusual behavior from other forms.)

You should also restart the management server services and consoles after making this change. It also wouldn't hurt to clear your console's cache.

Make backups of your database before you attempt any of this. And, of course, you should try this in a development environment first.

Remember, this workaround is NOT supported by Microsoft (I asked a long time ago :) )

  • Marked as answer by Stefan Johner Monday, April 01, 2013 9:24 PM
Free Windows Admin Tool Kit Click here and download it now
April 1st, 2013 4:22pm

Hi Aaron

Thanks very much for your help! I already suspected something like that... I'll try this workaround in my lab environment

April 2nd, 2013 12:23am

This is very late, so I don't expect it to still help you. But for those out there like myself still researching and crawling forums for information, this answer may help.

When you create your custom incident form import it into the authoring tool. Create a new work item and point it to your custom form assembly you created in VStudio. Create a new form and base it off your custom work item. This should pull your form out from the assembly. Make any changes or binding configurations here, save and export as a management pack bundle.

Import the bundle into SCSM, and go to incident management in the Work Items. Click on create view and point it to your custom MP. Name it something like New Custom Incident Form or YourCompany's Incident Request, etc. It should populate in the left hand views pane and clicking this should launch your custom form!

  • Proposed as answer by SirLearnAlot Friday, June 13, 2014 8:11 PM
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2014 11:10pm

This does not change the default form for me
February 24th, 2015 4:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics