---
title: "getRequestTypeGroupsForServiceDesk"
canonical: "https://support.appfire.com/space/PSJC/694288787/getRequestTypeGroupsForServiceDesk"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Returns an array of indexed groups.

Returns an array of indexed groups. You may use the group ids to navigate the array i.e. it is indexed by group ids

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getRequestTypeGroupsForServiceDesk(serviceDeskId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| serviceDeskId | Integer | Yes | The service desk id. |

## Return Type

**String []**

## Example

```javascript
return getRequestTypeGroupsForServiceDesk(1);
```

## See also

> Macro (contentbylabel)