...
comalaSetState(pageId, workflowState, <comment>)
Description
Excerpt |
---|
Sets the workflow state of the page using the Comala Workflows add-on. |
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
pageId | number | Yes | The selected page to change the workflow state on. |
workflowState | string | Yes | Name of the workflow state to be set to. |
comment | string | noNo | Comment to be added to the Comala workflow history. |
Return type
Boolean (true/false)
...
Example
Code Block | ||||
---|---|---|---|---|
| ||||
return comalaSetState(getPage("TST", "Demo Page"), "Approved", "Page was approved by: " + currentUserFullName()); |