AddAltirisPackageOrPolicy
You can use the AddAltirisPackageOrPolicy web method to add an Altiris package or policy to a catalog item.
Parameters
The AddAltirisPackageOrPolicy web method includes the following parameters:
| # | Parameters | Data Type | Description |
|---|---|---|---|
| 1. | catalogItemID | Integer | ID of the catalog item. |
| 2. | packageOrPolicyID | String (GUID) | GUID of policy or package. |
| 3. | programData | String | String of the format InstallType(Integer)| programID where InstallType may be one of the following:0 —Install 1 —Uninstall 2 —Repair The programID is a string. For example:0|programID |
| 4. | deploymentTarget | Enum Value | Use one of the following values: 0 —DeployToUser 1 —DeployToComputer |
Return Value
Returns one of the following values:
-
Returns TRUE for success
-
Returns FALSE for failure