How to get property from trigger class

Oct 17, 2011 at 6:52 AM

I've created a workflow which rises arfter a custom class based object is updated.

Inside a workflow I use "Windows PowerShell Script" activity where I call New-SCSMIncident.

How can I put say to -Title parameter a property from the trigger class?

Developer
Oct 21, 2011 at 12:59 AM

It's hard to say without seeing specifics, however, since you have the id of the trigger (which you will need to pass into the script as a parameter), you can use the get-scsmobject -id <guid> to get the object and then you can get to the property

Oct 21, 2011 at 4:34 AM

> since you have the id of the trigger

where can I get the trigger id from?

Developer
Nov 5, 2011 at 7:35 AM

The trigger id should be $Target/Id$ in the subscription. This should be passed to the script activity as an arguent