IRPCFolderUISettings.SetFolderSelection
Vault API / standard write session idempotent returns metadata structure version
Replaces the calling user's folder selection for one view level: the folders that the user always wants to see on a level whose listing is cut by the folder limit.
| Service | Folder UI settings MFiles.IRPCFolderUISettings |
|---|---|
| gRPC method | /MFiles.IRPCFolderUISettings/SetFolderSelection |
| HTTP (mf-http-grpc) | POST /grpc/v1/set-folder-selection |
| Request | SetFolderSelectionRequest |
| Response | SetFolderSelectionResponse |
| Book and level | Vault API, standard |
| Kind | write |
| Session | Required: the session ID from LogIn in the mfiles-session-id-bin metadata. |
| Idempotent | yes |
| Returns metadata structure version | yes (in the mfiles-metadata-version-bin trailer) |
| Streaming | none (unary) |
Remarks
- Not available on servers where the feature is not enabled: fails with "Not implemented." ("Folder selection is not enabled on this server.").
- Requires a vault session of a named user; anonymous sessions get "Access denied.".
folder_locationmust be a view folder followed only by property folders, and the level it leads to must group by a property or value; other locations fail.foldersare the property folder values as the listing returned them. Lookups are stored by item ID only, so a renamed item stays selected. Empty values, multi-select lookups and duplicates are rejected. The selection may not have more folders than the level's folder limit.- An empty
foldersclears the selection. The whole selection is replaced; a failed call leaves the stored selection unchanged.
Request: SetFolderSelectionRequest
Replaces the calling user's folder selection for one folder location. The selection always belongs to the session's user, so the request has no user field. An empty folder array clears the selection.
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
folder_location[] | repeated Folder | The path from the vault root to the parent of the level whose folders are selected: a view folder followed by property folders. |
folder_location[].type | FolderType | The 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[].data | FolderInfoUnion | Additional folder type -specific information as a union. |
folder_location[].data.any_folder | FolderInfoUnion.AnyFolderData (oneof data) | Any folder type. |
folder_location[].data.view_folder | FolderInfoUnion.ViewFolderData (oneof data) | View folder type. |
folder_location[].data.property_folder | FolderInfoUnion.PropertyFolderData (oneof data) | Property (virtual) folder type. |
folder_location[].data.traditional_folder | FolderInfoUnion.TraditionalFolderData (oneof data) | Traditional folder type. |
folder_location[].data.search_folder | FolderInfoUnion.SearchFolderData (oneof data) | Search folder (extended view folder) type. |
folder_location[].data.external_view_folder | FolderInfoUnion.ExternalViewFolderData (oneof data) | External view folder type. |
folders[] | repeated TypedValue | The complete new selection, as the folder values that the listing returned. Empty clears it. |
folders[].is_null_value | bool | True if the value is empty. data is then unset. |
folders[].type | Datatype | The data type of the value. |
folders[].data | TypedValueUnion | The value, in the member that matches type. Unset for an empty value. |
folders[].data.text | string (oneof data) | The value of DATATYPE_TEXT. |
folders[].data.integer | int32 (oneof data) | The value of DATATYPE_INTEGER. |
folders[].data.real_number | double (oneof data) | The value of DATATYPE_REAL_NUMBER. |
folders[].data.decimal_number | string (oneof data) | Fixed precision number. |
folders[].data.date | google.protobuf.Timestamp (oneof data) | The value of DATATYPE_DATE: midnight UTC of the date. |
folders[].data.time | google.protobuf.Timestamp (oneof data) | Time. |
folders[].data.timestamp | google.protobuf.Timestamp (oneof data) | The value of DATATYPE_TIMESTAMP, in UTC. |
folders[].data.boolean | bool (oneof data) | The value of DATATYPE_BOOLEAN. |
folders[].data.lookup | Lookup (oneof data) | The value of DATATYPE_LOOKUP: one value list item or object. |
folders[].data.multi_select_lookup | MultiSelectLookup (oneof data) | The value of DATATYPE_MULTI_SELECT_LOOKUP: any number of value list items or objects. |
folders[].data.integer64 | int64 (oneof data) | Integer (8 bytes). |
folders[].data.filetime | google.protobuf.Timestamp (oneof data) | FILETIME (64-bit integer). |
folders[].data.multi_line_text | string (oneof data) | The value of DATATYPE_MULTI_LINE_TEXT. |
folders[].data.acl | AccessControlList (oneof data) | Access Control List. |
Response: SetFolderSelectionResponse
A structure that specifies the response type for the SetFolderSelection method.
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
has_selected_folders | bool | True when the caller has a stored selection for the location after the call. |