Skip to main content

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:

#ParametersData TypeDescription
TitleStringThe title of the new catalog item. Duplicate titles are not accepted.
DescriptionStringA description of the item.
VisibleBooleanWhether the catalog item is visible (Equivalent to “Is Globally Visible”)
ImageFileNameStringThe file name of the image to display. The file must exist in the App Portal\Web\Backgrounds\Packages directory.
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.
CategoryNamesStringSeparate 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.
GroupNamesStringAdd to security groups on approval. Separate each entry with a comma e.g. Domain\Group1,Domain\Group2
MembershipTypeIntegerType 0 for User, 1 for computer or 2 for both
CreateInventoryRecordBooleanCreate a SCCM Inventory Record with the same name and assign it an inventory rule derived from the MSI Product ID of the install program.
SCCMInventoryAttributeStringAdd 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)