
(Get -SCSMObject -Class (Get -SCSMClass -Name "")).PriorityMatrix That should be enough to get you started (it's not as overwhelming as I probably made it sound.i just type a lot :) ), and if you have any more questions, ask away :) Then, using the values of two other controls on your form you choose a priority value from the XML matrix and apply that priority value to the priority control on your form. If you decide to reuse the incident priority matrix, the first thing you'll need to do with the sdk is retrieve this singleton object.

So, right off the bat, you can either re-use this singleton or you can create your own. Based on the values of the Impact and Urgency controls, a priority value from this XML snippet is applied to the The priority matrix is stored in the SCSM database as a snippet of XML as part of the class (a singleton).
Incident priority matrix code#
Out how we can put custom controls on a form extension :)Įither way, you'll have to design some code to reproduce the priority control's features. Fortunately, Anton already did the heavy lifting and figured Option 2:However, if you're trying to add a custom priority control to a form extension (eg: you want to put it on the current change-request form) then there are some extra steps you have to take. Option 1: If you're building a custom form from scratch using Visual Studios, there won't be too much extra you have to do. Have to take it one step further (creating a custom form control)īefore I go on, though, I want to point out that there are a couple ways of doing this. The original poster in that thread was interested in setting the priority through the SDK based workflow the same way the incident form does.for your purpose of reproducing priority on a custom form, you'll do something similar, but you'll Here's a link to a forum post from a while back with some insight into how the control works:

The good news is that you _can_ reproduce the priority control on other forms, but it will require some coding. The priority matrix control you see on the incident form is custom code developed by Microsoft.
