Get Business Units
Description
Section titled “Description”Get a list of Business Units.
Syntax
Section titled “Syntax”GetBusinessUnits() as ArrayList
Parameters
Section titled “Parameters”None.
Return value
Section titled “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
Section titled “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 bunext