GetViews
Returns the user's view collection (common views and user-specific views).
Syntax
// Assumes shellUI has been initialized with IShellUI instance
const results = await shellUI.Vault.ViewsOperations.GetViews({
get_all_views: false,
parent_view: 0,
});
Message
Name | Description | Type |
---|---|---|
get_all_views | True to get all views. If this parameter is true, the lParentView parameter is ignored. | boolean |
parent_view | The ID of the view whose child views to get. Specify -1 to get the root-level views. Effective only when bAllViews is false. | number |
Return type
Name | Description | Type |
---|---|---|
views | The views as JSON array (Represented by CMF_View struct). | View[] |
Example
{
"views": [] /* Array of View */
}