Get packages on Business Unit
Description
Section titled “Description”Gets a list of packages on the specified Business Unit.
Syntax
Section titled “Syntax”GetPackagesOnBusinessUnit(ByVal businessUnit As String) as ArrayList
Parameters
Section titled “Parameters”BusinessUnit(String)
Business Unit Name
Return Value
Section titled “Return Value”The function returns an array of packages. Each package (p) in the array is a joined line with the character defined with Set splitter.
- p.Name
- p.Version
- p.Type
- p.DisplayName
- p.IsMandatory
- p.ScheduleId
- p.Description
- p.GUID
- p.ID
- p.IsInteractive
- p.DependendPackageID
- p.IsInventoryPackage
- p.CollectMode
- p.Priority
- p.ServerDeploy
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Set aUnit = CreateObject("System.Collections.ArrayList")wscript.echo oCMS.SetDefaultManagementPoint("1")Set aUnit = oCMS.GetPackagesOnBusinessUnit("Sales Denmark")for each item in aUnit wscript.echo itemnext