IRPCSearch.GetObjectsCountForNotifications

View as Markdown

Vault API / core read session or assertion idempotent

Gets the objects count for notification badge.

ServiceSearch MFiles.IRPCSearch
gRPC method/MFiles.IRPCSearch/GetObjectsCountForNotifications
HTTP (mf-http-grpc)POST /grpc/v1/get-objects-count-for-notifications
RequestGetObjectsCountForNotificationsRequest
ResponseGetObjectsCountForNotificationsResponse
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 versionno
Streamingnone (unary)

Remarks

Used by the M-Files clients for notification badges: the counts of the caller's "Assigned to Me" and "Checked Out to Me" views.

Request: GetObjectsCountForNotificationsRequest

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

FieldTypeDescription
notification_data_request_flagsNOTIFICATIONDATAREQUESTFLAGSNotification data request flags.
notification_data_request_flags.allboolSpecifies all flags set; Including any future flags.
notification_data_request_flags.checked_out_to_me_on_this_computerboolTo get number of checked out objects from current user and current computer.
notification_data_request_flags.checked_out_to_meboolTo get number of checked out objects by current user.
notification_data_request_flags.assigned_to_meboolTo get number of assigned objects to current user.
search_flagsSearchFlagsSearch flags. Supports 'INCLUDE_UNMANAGED_OBJECTS' flag only.
search_flags.allboolAll flags set, including any future flags. Do not use in searches.
search_flags.look_in_all_versionsboolAlso match older versions; each object is returned once. Cannot be combined with sorting, and GetObjectCountInSearch rejects it.
search_flags.return_latest_visible_versionboolReturn the latest visible version for each matching document.
search_flags.separately_search_in_each_object_typeboolSearch each object type separately and merge the results. The limit then applies to each object type, and pages_with_more_results lists the object types whose results were cut.
search_flags.allow_quick_refresh_for_external_object_typesboolIf a search with an external ID condition on an external object type finds nothing, refresh the object type from its external database and search again.
search_flags.disable_relevancy_rankingboolDo not rank the results by relevance.
search_flags.separately_search_specific_object_typesboolAllows only specified object types to be searched separately.
search_flags.include_unmanaged_objectsboolExtends the search to include unmanaged objects.
search_flags.individual_limit_for_each_external_repositoryboolEnsures that up to the specified maximum number of results are returned from each repository.

Response: GetObjectsCountForNotificationsResponse

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

FieldTypeDescription
assigned_to_me_objects_countuint32Objects count from "Assigned to me" view.
checked_out_to_me_objects_count_on_this_computeruint32Number of checked out objects by current user from the current computer.
checked_out_to_me_objects_countuint32Objects count from "Checkedout to me" view.