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


## Syntax

<span style="color: #3366ff">**getRequestsTypes(portalId)**</span>

## Description

> Macro (excerpt)
> 
> Returns an array of JRequestType containing all the Request Type data for a Portal.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| portalId | Number | No | The ID of the portal for which request types are retrieved. |

## Return type

**JRequestType[]**

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

## Examples

### Example 1

Use the following code to get the description of the first request type for portal ID 1234. 

The request types are retrieved in no specific order.

```
JRequestType[] requestTypes = getRequestsTypes(1234);
JRequestType firstRequestType = requestTypes[0];

return firstRequestType.description; 
```

## See also

> Macro (contentbylabel)