API Reference > imodeljs-frontend > IModelConnection > IModelConnection.Views > queryDefaultViewId queryDefaultViewId Method Query the Id of the default view associated with this iModel. Applications can choose to use this as the default view to which to open a viewport upon startup, or the initial selection within a view selection dialog, or similar purposes. queryDefaultViewId(): Promise<Id64String> Returns - Promise<Id64String> the ID of the default view, or an invalid ID if no default view is defined. Defined in core/frontend/src/IModelConnection.ts Line 919 Last Updated: 13 June, 2024