PublishCatalogItemEx
You can use the PublishCatalogItemEx web method to create a new catalog item.
Parameters
The PublishCatalogItemEx web method includes the following parameters:
| # | Parameters | Data Type | Description |
|---|---|---|---|
| productName | String | Name of the product. | |
| companyName | String | Name of the company. | |
| version | String | Product version. | |
| shortDescription | String | Short description of the product. | |
| longDescription | String | Long description of the product. | |
| Visible | Boolean | Enter one of the following values: True —Make the catalog item visible on the Browse Catalog tab. False —Do not make the catalog item visible on the Browse Catalog tab. | |
| icon | Byte Array | Icon of the product. | |
| iconExtension | String | Icon extension. | |
| flexeraID | String | Flexera ID of the product. | |
| ConfigManagerServerName | String | Server name. | |
| ConfigManagerSiteCode | String | Server site code. | |
| ConfigManagerID | String | System Center Configuration Manager ID of the catalog item. | |
| ConfigManagerData | String | System Center Configuration Manager data. | |
| DeploymentTarget | Enum Value | Enter one of the following values: 0 —DeployToUser 1 —DeployToComputer | |
| templatePackageID | Integer | To follow a template structure when creating the new catalog item, enter a Template package ID. If you do not want to use a template, enter 0 . | |
| csvCategoryNames | String | Enter a single category name or comma separated list of category names. | |
| csvGroupNames | String | Enter a comma separated list of property values. | |
| memberShipType | Integer | Enter membership type. | |
| CreateInventoryRecord | Boolean | Enter one of the following values: True —Create an inventory record. False —Do not create an inventory record. | |
| InventoryClassOrQueryName | String | Enter name of inventory class or query. | |
| ItemAttributes | InventoryAttributeObject | Enter the object of the Inventory Attribute. |
Return Value
Returns one of the following values:
- Returns integer greater than 0 for success
- Returns -1 for error