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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | comalaGetState(pageId) | **Package** | comala |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Gets the workflow state of the page from the Comala Document Management add-on.

Gets the workflow state of the page from the Comala Document Management add-on.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | pageId | Integer | Yes | The selected page to retrieve the workflow state of. |

## Return Type

**String**

## Example

```javascript
return comalaGetState(getPage("TST", "Demo Page"));
```

Returns "Approved"

## See also

> Macro (contentbylabel)