EnumID for new Status
Hi.
I've created a new status for incidents, but cannot find the EnumID.
Get-SCSMEnumeration IncidentStatusEnum | Format-Table ID, Name returns all incidentstatuses but the newly created.
Help?
Best Answers
-
Geoff_Ross Cireson Consultant O.G.Hi Evind,
I assume you've created it in the Console, in the case the Console assigns a random guid for the Enum Name so it won't be caught in that cmdlet.
So you can grab all Enums where the parent is the IncidentStatusList with this:Get-SCSMEnumeration | ? {$_.Parent -like 'ManagementPackElementUniqueIdentifier=89b34802-671e-e422-5e38-7dae9a413ef8'} | ft -Property DisplayName, Id
This will show your new one.
Geoff1 -
Geoff_Ross Cireson Consultant O.G.FYI, That Guid I used to match to the parent is the Guid of the Enum List Itself.
Obtained by(Get-SCSMEnumeration IncidentStatusEnum$).Id
NB the$
at the end of the name is to get only this, not also anything that contains this.
5
Answers
I assume you've created it in the Console, in the case the Console assigns a random guid for the Enum Name so it won't be caught in that cmdlet.
So you can grab all Enums where the parent is the IncidentStatusList with this:
This will show your new one.
Geoff
Obtained by
NB the at the end of the name is to get only this, not also anything that contains this.
https://gallery.technet.microsoft.com/SCSM-Entity-Explorer-68b86bd2