Using SMLets Beta 3 Post #8–Getting the GUID of an Enumeration

  • Comments 3
  • Likes

Let’s say you want to get the GUID of an enumeration.  You could query the database EnumType table for it by following instructions in this blog post or you could use SMLets.

Here is how you do it using SMLets:

Hopefully you already know the non-GUID ID (also referred to as Name) of the enumeration.  If you do then you can get the enumeration like this:

Get-SCSMEnumeration –Name System.WorkItem.TroubleTicket.UrgencyEnum.Medium


Let’s say you don’t know the name though and you only know part of the name – you could do this:

Get-SCSMEnumeration –Name Medium


That can help you find the name.

Another option is to get all the Enumerations and then filter through them looking for a particular display name:

Get-SCSMEnumeration | ?{$_.DisplayName –eq “Medium”}


Now all you need to do is pipe the output of one of these commands to the Format-Table cmdlet:

Get-SCSMEnumeration –Name System.WorkItem.TroubleTicket.UrgencyEnum.Medium | Format-Table Name, ID


This same general approach would work for other types of MP elements like views, tasks, console tasks, rules, etc.

Using SMLets Beta 3 Post #8–Getting the GUID of an Enumeration

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Hi,

    is there a way to launch the Create New Incident Task from command Line? we are trying to integrate SCSM with a call Manager so when an Operator receive a call on his desktop the Create New Incident Pop Up Automatically.


  • @Antoine - no sorry there is not.  Your best option is to create a similar looking form using the SDK on the backend.

  • @Travis, What we did is create a new External .net form that query information from SCSM database and save data into the database once submit.