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

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

## Description

> Macro (excerpt)
> 
> Returns the workflow that is set on a specified page.

Returns the workflow that is set on a specified page.

## Parameters

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

## Return Type

**String**

## Example

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

Returns "Simple approval workflow"

## See also

> Macro (contentbylabel)