Creating new work items with SMLets

When automating your ITIL processes, there will be situations where you will need to create new work items programmatically. For instance, you might have a scheduled change once a month or you would like to automatically create incidents when you discover an error in the event log of some LOB application.

In this recipe, we will take a look at how we can create a new service request with included activities directly from PowerShell.

The end result would look like this:

Creating new work items with SMLets

Getting ready

Make sure that you've followed the Downloading and installing SMLets recipe earlier in this chapter. It's also very good if you have ...

Get Microsoft System Center 2016 Service Manager Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.