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


## Description

> Macro (excerpt)
> 
> Returns a JSMRequestType structure.

Returns a JSMRequestType structure for the provided request type id, from the service desk mentioned.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getRequestTypeByIdForServiceDesk(serviceDeskId, requestTypeId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

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

## Return Type

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

Returns a JSMRequestType structure containing information about the request type.

## Example

```javascript
JSMRequestType requestType = getRequestTypeByIdForServiceDesk(1, 25);
return requestType;
```

## See also

> Macro (contentbylabel)