---
title: "getLabels"
canonical: "https://support.appfire.com/space/PSCONF/1460568108/getLabels"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getLabels(parentId) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> The routine receives the id of a page as parameter and returns a list of structures containing some properties of the labels of that page.

The routine receives the id of a page as parameter and returns a list of structures containing some properties of the labels of that page.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | parentId | Number | Yes | ID of the selected page for which to retrieve all labels. |

## Return Type

**Number []**

## Example

```javascript
getLabels(11801);
```

## See also

> Macro (contentbylabel)