Syntax
comalaSetState(pageId, workflowState, <comment>)
Description
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 | No | Comment to be added to the Comala workflow history. |
Return type
Boolean (true/false)
Example
return comalaSetState(getPage("TST", "Demo Page"), "Approved", "Page was approved by: " + currentUserFullName());