Click or drag to resize

IBusinessUnitGetBusinessUnitHierarchy Method

Gets business unit hierarchy under given Business unit, or the entire business unit hierarchy of organization.

Namespace: Severa.API
Assembly: Severa.SOAP.API (in Severa.SOAP.API.dll) Version: 1.0.0+cc2a5357b8231e24c5fd7606bb1e71a1374ad1e9
Syntax
List<BusinessUnit> GetBusinessUnitHierarchy(
	string rootBusinessUnitGuid,
	int options
)

Parameters

rootBusinessUnitGuid  String
Unique identifier for the root business unit of the requested hierarchy. This parameter is ignored, if options parameter has EntireHierarchy-bit set.
options  Int32
Bitflag. Each bit of the enum represents a separate option. Use 'Bitwise Or' to specify a combination of options. See BusinessUnitGetOptions enumeration for details and values.

Return Value

ListBusinessUnit
List of BusinessUnit objects.
Exceptions
ExceptionCondition
AuthenticationFailureExceptionThe caller could not be authenticated.
NotFoundExceptionBusiness unit could not be found.
GeneralFailureExceptionAny other fault.
Remarks
There will always be at least one business unit. It is impossible to delete all BusinessUnits in Visma Severa.
See Also