Skip to main content

AddCMPackage

The AddCMPackage web method is used internally to add advertisements to a catalog item.

Parameters

The AddCMPackage web method includes the following parameters:

#ParametersData TypeDescription
catalogItemIDIntegerID of the catalog item.
cmServerStringSystem Center Configuration Manager site server.
cmPackageIDStringSystem Center Configuration Manager package ID.
deploymentSettingsObject of class deploymentContains number of properties.
deploymentTechnologyEnum valueEnter one of the following values to identify the deployment technology: 1 —System Center 2012 Configuration Manager 3 —Altiris 4 —Workspace ONE UEM / Google Android 5 —Workspace ONE UEM / iOS 6 —Workspace ONE UEM / Windows 7 —Jamf Pro 8 —ConfigMgr 10 —Intune 11 —Jamf Cloud 0 —Unknown

Return Value

Returns one of the following values:

  • Returns TRUE for success
  • Returns FALSE for failure