# Get group packages

> Gets a list of packages linked to the specified group.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/package-functions/get-group-packages/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Gets a list of packages linked to the specified group.

## Syntax

GetGroupPackages(Byval GroupName as String, Byval GroupType as String) as ArrayList

## Parameters

***GroupName (String)***

The name of the group

***GroupType (String)***

The type of the group;

- "Dynamic\_ADSI"
- "Calendar"
- "Department"
- "Dynamic\_SQL"
- "Reinstall"
- "Security"
- "Static"

## 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](/capainstaller/sdk-capainstaller-software-development-kit-functions/container-functions/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

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
Set aUnit = CreateObject("System.Collections.ArrayList") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
Set aUnit =  oCMS.GetGroupPackages("Test","Static") 
for each item in aUnit 
  wscript.echo item 
next 
```
