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

> Macro (button-handy)



> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getCustomFieldIdByAlias(customFieldAlias); | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the custom field id with the given alias.

  Returns the custom field id with the given alias.  

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | customFieldAlias | String | Yes | The custom field alias |

## Return Type

**String **

Returns the custom field id.

## Examples

### Example 1

```
getCustomFieldIdByAlias("MyCustomFieldAlias");
```

Returns: "customfield_10101"

## See also

> Macro (contentbylabel)