Get Business Units

Description

Get a list of Business Units.


Syntax

GetBusinessUnits() as ArrayList


Parameters

None.


Return value

The function returns an array of Business Unit. Each Business Unit (BU) in the array is a joined line with the character defined with Set splitter

  • businessUnit.Name
  • businessUnit.GUID
  • businessUnit.Id


Example

VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") 
Set arrBU = CreateObject("System.Collections.ArrayList") 
wscript.echo oCMS.SetDefaultManagementPoint("1") 
Set arrBU = oCMS.GetBusinessUnits() 
for each bu in arrBU
  wscript.echo bu
next