Home Analyst Portal
Options

EnumID for new Status

Eivind_OsbakEivind_Osbak Customer Advanced IT Monkey ✭✭✭

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

  • Options
    Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Answer ✓
    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.

    Geoff

Answers

  • Options
    Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Answer ✓
    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.

    Geoff
  • Options
    damon_mulligandamon_mulligan Cireson Consultant Advanced IT Monkey ✭✭✭
    Here is a great tool also. Entity Explorer.
    https://gallery.technet.microsoft.com/SCSM-Entity-Explorer-68b86bd2

Sign In or Register to comment.