Applying SR template using Powershell

Steve_O'ConnorSteve_O'Connor Customer IT Monkey ✭
edited July 2016 in Service Manager
Rather than putting every bit of software in as a Request Offering, I'm trying to leverarge the ConfigMgr Application Catalogue instead. So the scenario link to software catalogue, customer request application from there, ticket logged in SCSM for analyst to approve. Orchestrator does the work behind the scenes. Its all working fine until I realised there is no easy way to apply a SR template within orchestrator.

So with a bit of looking around, I have found various parts of scripts and ideas and come up with the below to apply a template as a script action.

Import-Module SMlets

It all works fine until we have to get the SR to apply template, its returning a null value:

Get-SCSMObjectProjection : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'ProjectionName'. Specified method is not supported.

I've tried several variations of the script and it always returns null at the get SR stage.

Really appreciate if anyone has any ideas?


Sign In or Register to comment.