Views (IRPCViews)

View as Markdown

Reads and maintains the views of the vault: the common views and the calling user's own (private) views.

All view operations can be done via this interface. MFClient uses this interface to manage the user-specific view collection and common view collection.

gRPC serviceMFiles.IRPCViews
Book and levelVault API, standard
Methods14
Proto filemfiles/IRPCViews.proto

Overview

A view is a saved search with optional grouping levels, shown as a folder in M-Files clients. Common views are defined by administrators and are visible to the users their ACL allows. Private views belong to one user. Every user has a view collection: the common views they may see plus their own private views, each with a per-user visible or hidden flag. For the search side of views, see Search.

To list the objects in a view, search with the view's content_definition, or browse it with the folder content methods of IRPCSearch.

Rights. Reading needs no special vault rights. Creating or changing private views needs the vault right manage_private_views; creating, changing or deleting common views needs manage_common_views; making a view indexed needs materialize_views (VaultAccess). Anonymous sessions cannot create or delete views.

Built-in views. Every vault has built-in views with fixed IDs, for example 5 Checked Out to Me, 7 Recently Modified by Me, 9 Assigned to Me, 14 Recently Accessed by Me and 15 Favorites. Some of them are hidden by default (for example 12 and 18 ID views, 13 Built-in, 16 Reports, 17 Conflicts, 23 All object types). Built-in views cannot be deleted, and most of them cannot be changed.

Highlighted methods

MethodSummaryFacts
GetViewsGets the calling user's view collection: all views, or the direct child views of one view.write session or assertion returns metadata structure version
GetViewGets one view of the calling user's view collection, or one external view, as folder data.read session or assertion idempotent returns metadata structure version
GetViewsOrDeltaGets the calling user's whole view collection, or only the changes since a version the caller already has.read session or assertion idempotent returns metadata structure version

Other methods

MethodSummaryFacts
AddNewViewCreates a new private or common view.write session or assertion returns metadata structure version
CopyViewCopies a private view that another user has shared, with its child views, into the caller's own views.write session or assertion returns metadata structure version
CreateSubFolderCreates a traditional folder at a location inside a view, or returns an existing folder with the same name there.write session or assertion returns metadata structure version
DeleteViewDeletes a view and its child views.write session or assertion returns metadata structure version
DownloadFolderContentWithDownloadKeyNot available: always fails with "Not implemented.".write session or assertion
EnableShareViewAllows other users to copy the given private views of the caller for a limited time.write session or assertion returns metadata structure version
GetExternalRepositoryIconsGets icons that external repository connections provide for their views and objects.read session or assertion idempotent returns metadata structure version
GetFolderContentDownloadUrlNot available: always fails with "Not implemented.".write session or assertion
GetMultipleViewsGets several views of external repositories in one call.read session or assertion idempotent returns metadata structure version
ModifyViewReplaces the definition of an existing view.write session or assertion idempotent returns metadata structure version
SetViewVisibilityShows or hides a view in the calling user's view collection.write session or assertion idempotent returns metadata structure version