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


## Description

> Macro (excerpt)
> 
> Gets the name of the custom field by id.

Gets the name of the custom field by id.

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

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| customfieldId | number | Yes | Customfield id. |

## Return Type

**String**

Returns the custom field name for the provided id.

## Example

```javascript
return getCustomFieldNameById(10000);
```

## See also

> Macro (contentbylabel)