viewsheetPath

Property is read-only. It cannot be set in script.
parameter to obtain other environment information in script.

Returns the path of the Dashboard in the repository. For example, for a Dashboard named “Sales Explore” saved in the ‘Tutorial’ folder of the repository, viewsheetPath returns path Tutorial/Sales Explore.

Example

alert('This Dashboard is located at ' + viewsheetPath);