IRPCValueLists.GetLookupItems

View as Markdown

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

Gets the selectable items of one or more value lists or object types in one call, for example to fill lookup controls.

ServiceValue lists MFiles.IRPCValueLists
gRPC method/MFiles.IRPCValueLists/GetLookupItems
HTTP (mf-http-grpc)POST /grpc/v1/get-lookup-items
RequestGetLookupItemsRequest
ResponseGetLookupItemsResponse
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)

Remarks

Request: GetLookupItemsRequest

Request for getting lookup items of multiple object types or value lists (lookup types).

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

FieldTypeDescription
requests[]repeated LookupItemRequestOne request per value list or object type. See LookupItemRequest.
requests[].external_data_source_refreshExtDBRefreshTypeFor a list connected to an external database: whether to refresh it from the database before the read. EXT_DBREFRESH_TYPE_NONE reads the items the vault already has.Values: EXT_DBREFRESH_TYPE_NONE (0), EXT_DBREFRESH_TYPE_QUICK (1), EXT_DBREFRESH_TYPE_FULL (2).
requests[].value_list_idint32The ID of the value list or object type whose items are wanted.
requests[].property_defint32The ID of the lookup property being edited, to apply its value filter (PropertyDef.value_list_item_filter), or -1 for no filter. Set -1 explicitly: the default 0 is a real property definition ID (Name or title).
requests[].search_conditions[]repeated SearchConditionItem conditions, combined with AND, on the item pseudo properties 1-8 (for example 2 = name); see the IRPCValueLists overview. Deleted items are left out unless the condition Deleted (5) equal to true is given.
requests[].search_conditions[].expressionExpressionThe left side of the condition: what is evaluated for each object, such as a property value, a status value or any field (full-text search).
requests[].search_conditions[].typeConditionTypeThe comparison operator.
requests[].search_conditions[].valueTypedValueThe right side of the condition: the value to compare with. Its data type must suit the expression, for example a lookup for a lookup property, Boolean for STATUS_TYPE_IS_DELETED.
requests[].results_limitoptional uint32The maximum number of items to return. Unset or 0 returns all.
resolve_current_user_placeholdersboolTrue to replace the "current user" entry in each item's automatic permissions with the caller's own user ID.
include_permissionsboolTrue to fill acl and current_user_permissions of each returned item. Leave false if you need only IDs and names.
timeout_in_secondsuint320 for no timeout. Otherwise the server checks the elapsed time between the steps of the call and fails it with a timeout error once the limit has passed.

Response: GetLookupItemsResponse

Search multiple object type items response.

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

FieldTypeDescription
lookup_item_results[]repeated LookupItemResponseOne result per request, in the order of requests.
lookup_item_results[].value_list_idint32The value_list_id of the request.
lookup_item_results[].items[]repeated ValueListItemDataThe matching items, with permissions if the request had include_permissions. In hierarchical lists the parents of matching items are included.
lookup_item_results[].items[].itemValueListItemThe item. See ValueListItem.
lookup_item_results[].items[].aclAccessControlListThe access control list of the item. Set only when the request had include_permissions.
lookup_item_results[].items[].current_user_permissionsObjectPermissionsForClientWhat the caller may do with the item. Set only when the request had include_permissions.
lookup_item_results[].has_more_resultsboolTrue if more items matched than results_limit allowed.