Quantcast
Channel: SCSM PowerShell Cmdlets
Viewing all articles
Browse latest Browse all 306

New Post: new-scsmincident get id of this new incident?

$
0
0
Hi Together,

currently i'm working on a Script with which i can import Tickets from another Ticketsystem via CSV.

I managed to do that because its quite easy with the new-scsmincident cmdlet.

But now i should have the ID of the newly created incident to add the assigned to user to the incident.

Acutaly i try it with:

$id = (Get-SCSMIncident -Title "$ticketidmx + $title").id

Because i save the ticket-id of the other Ticketsystem and the title of the incident in the new incident in SCSM.

But i think thatss not "save" enough.

So is there any possibilty to get the ID of the newly created incident direclty after creating it with new-scsmincident?

thank you

brgds

Viewing all articles
Browse latest Browse all 306

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>