createNewCatalogItem

You can use the createNewCatalogItem web method to create a new catalog item, and, optionally, create an associated inventory group that links to the new catalog item. If the install program has an MSI Product ID specified in the System Center Configuration Manager program, an inventory rule will be created for the inventory group.

Parameters

The createNewCatalogItem web method includes the following parameters:

createNewCatalogItem Parameters

#

Parameters

Data Type

Description

1.  

Title

String

The title of the new catalog item. Duplicate titles are not accepted.

2.  

Description

String

A description of the item.

3.  

Visible

Boolean

Whether the catalog item is visible (Equivalent to “Is Globally Visible”)

4.  

ImageFileName

String

The file name of the image to display. The file must exist in the App Portal\Web\Backgrounds\Packages directory.

5.  

PackageServer

String

The netbios name of the SCCM server where the package exists

6.  

SMSPackageID

String

The SCCM PackageID representing the SCCM Package

7.  

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 e.g. 0|0|InstallInteractive,1|0|UninstallInteractive

8.  

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.

9.  

CategoryNames

String

Separate each entry with a comma e.g. Software, Adobe. If the category does not exist it will be created and assigned to the root node.

10.  

GroupNames

String

Add to security groups on approval. Separate each entry with a comma e.g. Domain\Group1,Domain\Group2

11.  

MembershipType

Integer

Type 0 for User, 1 for computer or 2 for both

12.  

CreateInventoryRecord

Boolean

Create a SCCM Inventory Record with the same name and assign it an inventory rule derived from the MSI Product ID of the install program.

13.  

SCCMInventoryAttribute

String

Add any additional attributes to the inventory rules for the new inventory group. This is in addition to the MSI product ID extracted from the install program.

Return Value

PackageID (integer)