This article describe how to generate link to specified request offering or to Generic Request on the Self-Service Portal. This can be helpful in email massages or on the custom portals\external systems. To do that you should complete two steps: get IDs of the Service Request and Request offering and generate link.
Link to specified request offering look like this:
As you can see you must know the ID of the Service Request and Request Offering.
First of all you must install SMLets if you haven’t do if before. Now you can find service request by using Get-SCSMServiceRequest and request offering by Get-SCSMRequestOffering.
With Get-SCSMServiceRequest and Get-SCSMRequestOffering you not need to know internal name of the SO and RO and can use –DisplayName parameter: if you created your SO and RO from console then Display Name is always equal to Title.
In my case I got SO and RO objects by two queries:
# Service Request Get-SCSMServiceOffering -DisplayName "Test SO" # Request Offering Get-SCSMRequestOffering -DisplayName "Test RO"
Both command returns the Type Projection object. So to get IDs of the object itself you should get Object property add call Get_Id() method for it:
# Service Request (Get-SCSMServiceOffering -DisplayName "Test SO").Object.Get_Id() # Request Offering (Get-SCSMRequestOffering -DisplayName "Test RO").Object.Get_Id()
Now you can copy IDs to url:
To open Generic Request just remove all parameters after Request%20Offering.aspx: