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

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

## Description

> Macro (excerpt)
> 
> Activate workflow in space.

Activate workflow in space.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | spaceKey | String | Yes | Selected space to activate the workflow of. |
> | workflowName | String | Yes | Selected workflow to be activated. |

## Return Type

**Boolean**

Returns 'true' if successful, and 'false' otherwise. For example, it will be false when there is no workflow in the space with the selected name.

## Example

```javascript
return comalaActivateSpaceWorkflow("TST", "Test Workflow");
```

Returns 'true' if the workflow "Test Workflow" exists in Space "TST" and can be activated or already active, returns 'false' otherwise.

## See also

> Macro (contentbylabel)