locked
Various Request Offering (same name) - which Service Offering? RRS feed

  • Question

  • Hi,

    I am using SCSM 2016 and creating a catalog group.

    There are request offerings with same name:

    The question is:

    Is it possible to get at which service offering pertains each of the request offerings?

    If yes,

    What is the procedure to get the service offering?

    Thanks in advance!

    Thursday, July 27, 2017 3:04 PM

Answers

  • Hi

    Try this code to match request offerings to Templates. 

    Import-Module SMLets
    
    $AllRequestofferings = Get-SCSMRequestOffering
    $AllTemplates = Get-SCSMObjectTemplate
    
    ForEach ($RO in $AllRequestofferings)
    {
        ForEach ($Template in $AllTemplates)
        {
         If ($Template.Identifier -eq $RO.TargetTemplate)
         {Write-host "Request Offering: $($RO.Displayname)  Template: $($Template.DisplayName)"
         }
        }
    
    }

    Regards

    Glen


    Web: www.xapity.com  |   Twitter: @xapityapps  |   Facebook: xapityapps

    • Marked as answer by SCCMadmin09 Thursday, August 17, 2017 4:57 AM
    Tuesday, August 8, 2017 9:15 PM

All replies

  • Hi

    Using the standard Service Manager Powershell this should give you a list of Service Offerings and the Target Offering (request Offerings) for each one:

    Get-SCSMServiceOffering | Select Title, TargetOffering, ManagementPackName

    Regards

    Glen


    Web: www.xapity.com  |   Twitter: @xapityapps  |   Facebook: xapityapps

    Thursday, July 27, 2017 8:43 PM
  • Hi,

    I get the following:

    What I am doing wrong?

    Thanks!


    • Edited by SCCMadmin09 Wednesday, August 2, 2017 3:37 PM image not loaded
    Wednesday, August 2, 2017 3:20 PM
  • Hi,

    At https://docs.microsoft.com/en-us/system-center/scsm/sm-cmdlets

    there is no Get-SCSMServiceOffering cmdlet.

    The following don´t show Get-SCSMServiceOffering cmdlet:

    Get-Command -module System.Center.Service.Manager

    The questions remains the same:

    Is it possible to get at which service offering pertains each of the request offerings?

    If yes,

    What is the procedure to get the service offering?

    Thanks in advance!

    Wednesday, August 2, 2017 3:40 PM
  • Hi

    I was using the Service Manger Powershell on a server that has SMLets installed. I thought it was a standard cmdlet, but it must be in SMLets. 

    Can you install SMLets and try again.

    Regards

    Glen


    Web: www.xapity.com  |   Twitter: @xapityapps  |   Facebook: xapityapps

    Wednesday, August 2, 2017 8:46 PM
  • Hi,

    Is there any way to to get at which service offering pertains each of the request offerings without using SMLets?

    Thanks!

    Wednesday, August 2, 2017 9:38 PM
  • Hi

    I don't think so. As you point out above the standard command lets are quite limited. SMLets is just about required to do things with PowerShell in Service Manager. 

    Maybe someone else has a thought on how to do this.

    Regards

    Glen


    Web: www.xapity.com  |   Twitter: @xapityapps  |   Facebook: xapityapps

    Wednesday, August 2, 2017 10:08 PM
  • Hi Glen,

    I get the following:

    How to get at which service offering pertains each of the request offerings? (please see the first screenshot).

    Thanks.

    Monday, August 7, 2017 10:55 PM
  • Hello,

    According to the output, it seems like that there is no service offering related to the request offering( in your first screenshot). 

    Although the request offering have same name, but they are with different path. You can use command

    get-scsmrequestoffering to get all request offering in your system. 

    Regards,

    Yan



    Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, August 8, 2017 5:20 AM
  • Thanks Yan_Li for your response.

    I get the following:

    Is it possible to get the template name using SMLets?

    Thanks!

    Tuesday, August 8, 2017 3:35 PM
  • Hi 

    You could start with the following SMlet:    Get-SCSMObjectTemplate

    This post from Mathew Dowst explains how to use Get-SCSMObjectTemplate to get the details on a template using Teir Queue as an example: https://social.technet.microsoft.com/Forums/en-US/3b24084c-910b-45e9-9f71-d0a30ad0786a/scsm-powershell-script-for-templates?forum=systemcenterservicemanager

    But I am not sure if that is going to link it back to the request offering. Yan Li's post is probably a better way to start if that is the case. From the Get-SCSNRequestoffering you can use the TargetTemplate property to match to the Identiifier property on the Get-ObjectTemplate output. This will link the Request Offering to the template used.

    Regards

    Glen


    Web: www.xapity.com  |   Twitter: @xapityapps  |   Facebook: xapityapps



    • Edited by Glen.Xapity Tuesday, August 8, 2017 9:01 PM
    Tuesday, August 8, 2017 8:38 PM
  • Hi

    Try this code to match request offerings to Templates. 

    Import-Module SMLets
    
    $AllRequestofferings = Get-SCSMRequestOffering
    $AllTemplates = Get-SCSMObjectTemplate
    
    ForEach ($RO in $AllRequestofferings)
    {
        ForEach ($Template in $AllTemplates)
        {
         If ($Template.Identifier -eq $RO.TargetTemplate)
         {Write-host "Request Offering: $($RO.Displayname)  Template: $($Template.DisplayName)"
         }
        }
    
    }

    Regards

    Glen


    Web: www.xapity.com  |   Twitter: @xapityapps  |   Facebook: xapityapps

    • Marked as answer by SCCMadmin09 Thursday, August 17, 2017 4:57 AM
    Tuesday, August 8, 2017 9:15 PM
  • Thanks a lot Glen.
    Thursday, August 17, 2017 4:57 AM