Function getAllBusinessUnits

  • Get all business units in the organization. NOTE: The return type here is Group. Uses pagination to get all results.

    Parameters

    • token: string

      Auth token. This is the token returned by get_auth_token(). Just the token, do not include "Bearer" in this string, that is handled inside the method.

    • organizationContext: string

      Organization context. This is provided by the Finite State API management. It looks like "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".

    Returns Promise<any[]>