comalaSetState
Syntax | comalaSetState(pageId, workflowState, [comment]) | Package | comala |
Alias | Pkg Usage |
Description
Sets the workflow state of the page using the Comala Document Management add-on.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
pageId | Integer | Yes | The selected page to change the workflow state on. |
workflowState | String | Yes | Name of the workflow state to be set to. |
comment | String | Yes | Comment to be added to the Comala workflow history. |
Return Type
Boolean
Example
return comalaSetState(getPage("TST", "Demo Page"), "Approved", "Page was approved by: " + currentUserFullName());Returns 'true'
