Skip to content

workview.definitionGet ​

Returns a workview's definition, such as its cube, sets and titles.

js
workview.definitionGet(workview)

Parameters ​

ParameterTypeDescription
workviewstringThe workview's name or id.

Returns ​

string

The definition, as a JSON string. Use JSON.parse() to read it. Returns "Error: workview not found" when the workview can't be found.

Examples ​

js
const def = JSON.parse(workview.definitionGet("Monthly P&L"));