Skip to main content

addSCCMPackageAndProgramToCatalogItem

The addSCCMPackageAndProgramToCatalogItem web method is used to adds a System Center Configuration Manager package / program to a catalog item.

Parameters

The addSCCMPackageAndProgramToCatalogItem web method includes the following parameters:

#ParametersData TypeDescription
TitleStringThe title of the item to add programs to.
PackageServerStringThe netbios name of the SCCM server where the package exists.
SMSPackageIDStringThe SCCM PackageID representing the SCCM Package.
SMSPackageDataStringThe formatting for the SMSPackageData is: Program Action(0 - Install,1 - Uninstall,2 - Repair)\
TemplatePackageIDIntegerThe template package ID will copy over the existing settings from that catalog item including request options, visibility, approval, approval process, and Actions.

Return Value

Returns one of the following values:

  • Returns a 1 for success
  • Returns a -1 for error