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:

addSCCMPackageAndProgramToCatalogItem Parameters

#

Parameters

Data Type

Description

1.  

Title

String

The title of the item to add programs to.

2.  

PackageServer

String

The netbios name of the SCCM server where the package exists.

3.  

SMSPackageID

String

The SCCM PackageID representing the SCCM Package.

4.  

SMSPackageData

String

The formatting for the SMSPackageData is:

Program Action(0 - Install,1 - Uninstall,2 - Repair)|Language ID (0 for English)|Office 2007 Install (Program Name)

Separate each entry with a comma, such as:

0|0|InstallInteractive,1|0|UninstallInteractive

5.  

TemplatePackageID

Integer

The 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