System Center 2012 Service Manager Developer's Survival Guide
Introduction
What is a survival guide? It is a page we created as a pointer to the best information on the web for guys how to extend Service Manager with they own code. You can use the information below to learn the fundamentals; increase your current knowledge, or stay current on Service Manager and events. And, if you think we missed some great article or blog post out there, please add it below!
SCSM 2012 SDK
SCSM 2012 allow you to communicate by SDK. SDK is supported way to get data from SCSM 2012. All other methods (SQL queries and IDataItem interface) are not supported by Microsoft.
- System Center 2012 SDK
- FAQ: Where are the SCSM SDK Binaries?
- Getting Started with the Service Manager SDK
- Getting Started with Type Projections
- More with Type Projections
- Getting and Working With Type Projections - Basic
- Object Templates
- Categorizing Management Pack Elements
Examples
- C# code snippets for Service Manager #1
- Code snippets for SCSM 2010 SP1 SDK. Part 1.
- How to check if today is a holiday via the new Service Level stuff in 2012 using the SDK
- How to read your logs for an Incident using C#
- Creating action log entry for incident via SDK in C#
- How to Create an Instance
- How to Get a Single Instance
- How to Get All Instances
- How to Query for Instances
- How to Delete Instances
- How to Establish a Relationship
- How to Define an Enumeration
- How to Reference Enumerations
- Assigning reviewers programmatically (with excellent comments inside code)
- Get Related Items (GetRelationshipObjectsWhereSource )
- How to Get the Request Activity Status using SCSM 2012 SDK
- How to get incident related items (GetRelatedObjects)
- How to query SMTP Address via UserName (and vice verse)
- Fastest way to get type projection from workitem id (Guid)
- How to use the SDK to create a notification address entry for a CI user object
- How to get Guid of management pack element even before import MP to SCSM
Troubleshooting
Workflows
Most of workflows that running inside of SCSM 2012 use WF (Workflow Foundation) so you can create your custom workflow easily. NOTE: Custom workflow must be target to .NET Framework 3.5.
NOTE: You should always try to use only the SDK methods with your custom workflow.
- Workflow Overview
- How to Use Visual Studio to Create a Service Manager Workflow
- Debugging Custom Forms, Console Task Handlers, and Workflows
- Guidelines for Creating Custom Activities
- Sample Activity - Setting an Activity's Status to Completed
Troubleshooting
- Exception message: Subscription configuration error. Error reading WorkflowParameter element. Error message: WorkflowParameter
- Why my workflow doesn’t listed in Workflow –> Status view
Extending UI
SCSM 2012 use WPF (Windows Presentation Foundation) for all UI elements. With SCSM 2012 you can extend UI by creating custom elements like:
- Controls (can be placed on existing forms)
- Forms
- Console tasks
The most common problem with UI components is what UI use the IDataItem interface and DataAdapters classes to communicate with SDK. So you can't use SDK in forms and console tasks directly.
Open Source Projects
- SCSM Incident SLA Management
- SCSM Send Email MP
- SCSM Perf Test Harness
- SCSM Azure Automation Connector (Beta)
- SCSM PrettyPrint
Examples
- How to Create Task Handlers
- Tasks Part 2 – Custom Console Tasks for Create, Edit, Delete
- Creating Custom Forms for Service Manager using Custom Controls: Service Request Example
- Create custom UserControl for SCSM 2010 SP1 (you can use same approach for SCSM 2012)
- Creating a Custom Administration Setting (Class, Task, Form, Wizard)
- Service Manager 2012 – How to disable form controls for a Resolved or Closed Incident – Part 1
- Service Manager 2012 – How to disable form controls for a Resolved or Closed Incident – Part 2
- Insert CI property values into Microsoft Word Template and print directly from Service Manager Console (console task, Word automation)
- How to add a button to edit ListView item on a custom SCSM form