AddConfigMgrPackage

App Portal 2020 R1

You can use the AddConfigMgrPackage web method to add a System Center Configuration Manager (Current Branch) package to a catalog item.

Parameters

The AddConfigMgrPackage web method includes the following parameters:

AddConfigMgrPackage Parameters

#

Parameters

Data Type

Description

1.  

catalogItemID

Integer

ID of the catalog item.

2.  

cmPackageID

String

ID of the package in System Center Configuration Manager (Current Branch).

3.  

cmPackageData

String

String in the format of InstallType|PackageName, where:

InstallType is one of the following:
0—Install
1—Uninstall
2—Repair
PackageName is a string that identifies the package.

For example:

0|AdobeReader

Return Value

Returns one of the following values:

Returns TRUE for success.
Returns FALSE for failure.