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


 


## Description

> Macro (excerpt)
> 
> Gets all information about the custom field. Routine returns a JCustomField structure type.

Gets all information about the custom field. Routine returns a JCustomField structure type.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getCustomField(customfieldId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| customfieldId | string or number | Yes | Id of the custom field to retrieve information for. |

## Return Type

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

## Example

```javascript
JCustomField field = getCustomField("customfield_12345");
runnerLog(field.id);
runnerLog(field.name);
runnerLog(field.type);
```

## See also

> Macro (contentbylabel)