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


## Description

> Macro (excerpt)
> 
> Returns an array of JSMRequestType containing all the Request Type data for the provided parameters.

Returns an array of JSMRequestType containing all the Request Type data, or only those that ar matching the provided searchQuery and sericeDesksIds.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getRequestsTypes([searchQuery[, serviceDesksIds]]) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| searchQuery | String | No | The string to be used to filter the results. |
| serviceDesksIds | String[] | No | The service desks ids for which to get the results. |

## Return Type

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

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

## Example

Use the following code to get ALL request types.

```javascript
JSMRequestType[] requestTypes = getRequestsTypes(); 
 return requestTypes;
```

## See also

> Macro (contentbylabel)