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

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

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | id | Integer | Yes | The id. |

## 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 comalaDeactivateSpaceWorkflow("TST", "Test Workflow");
```

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

## See also

> Macro (contentbylabel)