When you want to apply template on work item it’s extremely easy: you need to call ApplyTemplate method of the EnterpriseManagementObject or EnterpriseManagementObjectProjection class instance (with one exception – template shouldn’t contains activity for Service Requests, Change Requests or Release Records). But what if you want to create new object based on template? From first view it’s look not very hard – just call appropriated constructor. But in fact this is just first step of list of required steps: required or optional.
This article contains code snippets for C# and PowerShell that can be helpful when you work with SCSM 2010 SP1 SDK.
I’ve already saw many questions on forums about extending SCSM with new forms and\or custom user’s controls. So I wrote this article to show how we can extend SCSM with user control only. As for me, I prefer to use custom control without rewriting entire form because User Control provide excellent ability to change form’s logic and visibility, but they require much less work unlike the creation of new form and replace existing one. Another reason – new version of SCSM, which expected at Q4 2011 – Q1 2012. It’s a very small chance what if you rewrote entire form it will be work with SCSM 2012.
DISCLAIMER. Most of provided solutions are not supported by Microsoft. All information provided AS IS, without any warranties.