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 |
---|---|---|---|
json | string | Yes | The JSON to be converted. |
Return type
variable return type - depending on the left hand side operator type
Examples
Both examples show how JSON data can be parsed into an array or struct collections. Both examples use the following struct definitions:
1 |
|
Example 1 - Reading JSON from a file
16 |
|
Example 2 - Reading JSON from a variable
16 |
|