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:
| # | Parameters | Data Type | Description |
|---|---|---|---|
| Title | String | The title of the item to add programs to. | |
| PackageServer | String | The netbios name of the SCCM server where the package exists. | |
| SMSPackageID | String | The SCCM PackageID representing the SCCM Package. | |
| SMSPackageData | String | The formatting for the SMSPackageData is: Program Action(0 - Install,1 - Uninstall,2 - Repair)\ | |
| 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