How do I find GUIDs for projections and templates?
I've been tasked with the implementation of a form that creates an incident based on certain fields. My plan is to use the API to resolve this. So far I've gathered that I'm supposed to use Projection/Commit to do this. However, I've been trying to find the GUIDs for Templates and Projections, but can't seem to understand where to find them. Been using the SCSM Entity Explorer to get a deeper understanding, but can't find them there either.
Where are they??
Regards Anders
Best Answers
-
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭As a starting point, try this PowerShell code on a server that has SMLets installed (i.e. Cireson Portal):Import-Module SMLetsGet-SCSMTypeProjection | Format-Table DisplayName,Name,Id
That will generate a table of all type projections in your environment, including their name (internal and display), and GUID. You can then narrow this list down and more closely examine the ones relevant to the task at hand.
Taking a value from the list generated above, for example:
Get-SCSMTypeProjection -Name System.WorkItem.Activity.ManualActivityViewProjection | Format-List *
Thanks,
Nick5 -
john_doyle Cireson Support Ninja IT Monkey ✭✭✭✭A similar command will give you the list of templates:
Get-SCSMObjectTemplate | Format-Table DisplayName,Name,Id
5
Answers
That will generate a table of all type projections in your environment, including their name (internal and display), and GUID. You can then narrow this list down and more closely examine the ones relevant to the task at hand.
Taking a value from the list generated above, for example:
Get-SCSMTypeProjection -Name System.WorkItem.Activity.ManualActivityViewProjection | Format-List *
Thanks,
Nick
/Anders
Get-SCSMObjectTemplate | Format-Table DisplayName,Name,Id