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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | comalaLoadWorkflowToSpace(spaceKey, workflowMarkup) | **Package** | comala |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Sets workflows to the space according to a given markup.

Sets workflows to the space according to a given markup. For more information about the markup, see [Comala Workflow Authoring Guide](https://support.appfire.com/space/CDML/648611901/Workflow+Authoring+Guide).

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | spaceKey | Integer | Yes | Selected space to retrieve the workflow of. |
> | workflowMarkup | String | Yes | Refer to [Comala Workflow Authoring Guide](https://support.appfire.com/space/CDML/648611901/Workflow+Authoring+Guide). |

## Return Type

**Boolean**

Returns 'true' if successful and 'false' in all other cases.

## Example

```javascript
string workflowMarkup = readFromTextFile("C:/workflowMarkup.txt");
return comalaLoadWorkflowToSpace("TST", workflowMarkup);
```

Returns 'true'

## See also

> Macro (contentbylabel)