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 |
|---|---|---|---|
| 1. | productName | String | Name of the product. |
| 2. | companyName | String | Name of the company. |
| 3. | version | String | Product version. |
| 4. | shortDescription | String | Short description of the product. |
| 5. | longDescription | String | Long description of the product. |
| 6. | 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. |
| 7. | icon | Byte Array | Icon of the product. |
| 8. | iconExtension | String | Icon extension. |
| 9. | flexeraID | String | Flexera ID of the product. |
| 10. | ConfigManagerServerName | String | Server name. |
| 11. | ConfigManagerSiteCode | String | Server site code. |
| 12. | ConfigManagerID | String | System Center Configuration Manager ID of the catalog item. |
| 13. | ConfigManagerData | String | System Center Configuration Manager data. |
| 14. | DeploymentTarget | Enum Value | Enter one of the following values: 0 —DeployToUser 1 —DeployToComputer |
| 15. | 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. |
| 16. | csvCategoryNames | String | Enter a single category name or comma separated list of category names. |
| 17. | csvGroupNames | String | Enter a comma separated list of property values. |
| 18. | memberShipType | Integer | Enter membership type. |
| 19. | CreateInventoryRecord | Boolean | Enter one of the following values: True —Create an inventory record. False —Do not create an inventory record. |
| 20. | InventoryClassOrQueryName | String | Enter name of inventory class or query. |
| 21. | 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