Skip to end of banner
Go to start of banner

comalaSetState

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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.

workflowStatestringYesName of the workflow state to be set to.
commentstringNoComment 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());
  • No labels