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


## Description

> Macro (excerpt)
> 
> Returns an array of JSMRequestType.

Returns an array of JSMRequestType containing all the Request Type data for the provided parameters.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getRequestTypesForServiceDesk(serviceDeskId [,searchQuery [, groupId]]) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| serviceDeskId | Integer | Yes | The service desk id. |
| searchQuery | String | No | The string to be used to filter the results. |
| groupId | integer | No | Filters results to those in a customer request type group. |

## Return Type

**[JSMRequestType []](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

Returns an array of JSMRequestType containing information about the request types.

## Example

```javascript
JSMRequestType[] requestTypes = getRequestTypesForServiceDesk(1);
return requestTypes;
```

## See also

> Macro (contentbylabel)