IRPCSearch.SearchViewLevelFolders

View as Markdown

Vault API / core read session or assertion idempotent returns metadata structure version

The search covers the folders that the listing of the level would show without the folder limit. The results can be saved as part of the user's folder selection. Fails with E_NOTIMPL when the feature is not enabled on the server.

ServiceSearch MFiles.IRPCSearch
gRPC method/MFiles.IRPCSearch/SearchViewLevelFolders
HTTP (mf-http-grpc)POST /grpc/v1/search-view-level-folders
RequestSearchViewLevelFoldersRequest
ResponseSearchViewLevelFoldersResponse
Book and levelVault API, core
Kindread
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Request: SearchViewLevelFoldersRequest

Searches the folders of one view level by name. The search covers every folder that the listing of the level would show without the folder limit, including the folders beyond it.

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
folder_location[]repeated FolderThe folder location, from the vault root to the parent of the level whose folders are searched. The same path that the listing of the level uses.
folder_location[].typeFolderTypeThe type of the folder, for example FOLDER_TYPE_VIEW_FOLDER or FOLDER_TYPE_PROPERTY_FOLDER.Values: FOLDER_TYPE_UNKNOWN (0), FOLDER_TYPE_ANY_FOLDER (1), FOLDER_TYPE_VIEW_FOLDER (2), FOLDER_TYPE_PROPERTY_FOLDER (3), FOLDER_TYPE_TRADITIONAL_FOLDER (4), FOLDER_TYPE_SEARCH_FOLDER (5), FOLDER_TYPE_EXTERNAL_VIEW_FOLDER (6).
folder_location[].dataFolderInfoUnionAdditional folder type -specific information as a union.
folder_location[].data.any_folderFolderInfoUnion.AnyFolderData (oneof data)Any folder type.
folder_location[].data.view_folderFolderInfoUnion.ViewFolderData (oneof data)View folder type.
folder_location[].data.property_folderFolderInfoUnion.PropertyFolderData (oneof data)Property (virtual) folder type.
folder_location[].data.traditional_folderFolderInfoUnion.TraditionalFolderData (oneof data)Traditional folder type.
folder_location[].data.search_folderFolderInfoUnion.SearchFolderData (oneof data)Search folder (extended view folder) type.
folder_location[].data.external_view_folderFolderInfoUnion.ExternalViewFolderData (oneof data)External view folder type.
search_textstringThe text that the folder names must contain, ignoring letter case. At most 100 characters. Empty matches every folder.
limituint32The maximum number of results. Zero means 100. The value is clamped to 1-500.

Response: SearchViewLevelFoldersResponse

A structure that specifies the response type for the SearchViewLevelFolders method.

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
results[]repeated ViewLevelFolderSearchResultThe matching folders, at most the requested limit, sorted by name ignoring case and diacritics, with numbers in numeric order.
results[].folderTypedValueThe folder, in the same form as the property folders of the level's listing. It can be saved as part of a folder selection as it is.
results[].folder.is_null_valueboolTrue if the value is empty. data is then unset.
results[].folder.typeDatatypeThe data type of the value.
results[].folder.dataTypedValueUnionThe value, in the member that matches type. Unset for an empty value.
results[].is_selectedboolTrue when the folder is in the user's folder selection for the location.
has_more_resultsboolTrue when more folders match than were returned, or when the level has more folders than the search goes through. Narrowing the search text does not reveal the folders beyond that cap.