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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | comalaGetSpaceWorkflow(spaceKey) | **Package** | comala |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns a list of workflows that exist in the selected space.

Returns a list of workflows that exist in the selected space.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | spaceKey | String | Yes | The selected space to retrieve the workflow of. |

## Return Type

**String**

## Example

```javascript
return comalaGetSpaceWorkflow("TST");
```

Returns ["Simple approval workflow", "Content Review Workflow"]

## See also

> Macro (contentbylabel)