ExpressionUnion

View as Markdown

Union of expressions of different type.

Set exactly one member, the one that matches Expression.type.

Fields

FieldTypeNumberDescription
property_valueExpressionUnion.PropertyValueData (oneof data)1Expression for property values.
id_segmentExpressionUnion.IdSegmentData (oneof data)2Expression for document ID segments.
status_valueExpressionUnion.StatusValueData (oneof data)3Expression for status values such as Document ID or CheckedOutToUser.
file_valueExpressionUnion.FileValueData (oneof data)4Expression for file values such as file size.
typed_valueExpressionUnion.TypedValueData (oneof data)5Expression for values of specific data type. Lookup-typed values also specify the value list.
any_fieldExpressionUnion.AnyFieldData (oneof data)6Expression for values of any field (any property, file name etc.).
permissionsExpressionUnion.PermissionsData (oneof data)7Expression for permissions (ACL).

Used in fields

Nested message UninitializedData

Uninitialized expression, used as default value. This value is never used in actual expressions and serves only as a placeholder for uninitialized expressions.

Full name: MFiles.ExpressionUnion.UninitializedData

No fields.

Nested message PropertyValueData

Expression for property values.

Full name: MFiles.ExpressionUnion.PropertyValueData

FieldTypeNumberDescription
property_defint321The ID of the property definition whose value is compared, for example 0 (Name or title), 21 (Last modified) or 100 (Class).
data_functionDataFunctionCall2Optional function applied to the value before the comparison, for example DATA_FUNCTION_DAYS_FROM to compare the age of a date in days. Unset compares the value as is.
parent_child_behaviorParentChildBehavior3For hierarchical value lists: whether a match on a parent or child item also counts. Unset requires an exact match.Values: PARENT_CHILD_BEHAVIOR_NONE (0), PARENT_CHILD_BEHAVIOR_INCLUDE_CHILD_VALUES (1), PARENT_CHILD_BEHAVIOR_INCLUDE_PARENT_VALUES (2).

Nested message IdSegmentData

Expression for document ID segments.

Full name: MFiles.ExpressionUnion.IdSegmentData

FieldTypeNumberDescription
segment_sizeint321The size of the document ID range of one segment. Typically 1000.

Nested message StatusValueData

Expression for status values such as Document ID or CheckedOutToUser.

Value types that work with CONDITION_TYPE_EQUAL:

Full name: MFiles.ExpressionUnion.StatusValueData

FieldTypeNumberDescription
typeStatusType1The type of status information (e.g. check out user).
data_functionDataFunctionCall2Function that modifies the status value.

Nested message FileValueData

Expression for file values such as file size.

Full name: MFiles.ExpressionUnion.FileValueData

FieldTypeNumberDescription
typeFileValueType1The type of file information (e.g. file name).Values: FILE_VALUE_TYPE_HAS_FILES (0), FILE_VALUE_TYPE_FILE_NAME (1), FILE_VALUE_TYPE_FILE_SIZE (2), FILE_VALUE_TYPE_FILE_ID (3), FILE_VALUE_TYPE_CREATION_TIME (4), FILE_VALUE_TYPE_CHANGE_TIME (5), FILE_VALUE_TYPE_LINKED_TO_EXTERNAL_LOCATION (6), FILE_VALUE_TYPE_LINKED_EXTERNAL_LOCATION_ID (7), FILE_VALUE_TYPE_HAS_DUPLICATES (8).

Nested message TypedValueData

Expression for values of specific data type. Lookup-typed values also specify the value list.

Matches a value in any property of the given data type. With DATATYPE_MULTI_SELECT_LOOKUP (or DATATYPE_LOOKUP) and value_list, the condition finds objects that refer to the given item in any property, single- or multi-select.

Full name: MFiles.ExpressionUnion.TypedValueData

FieldTypeNumberDescription
datatypeDatatype1The data type of the values to match.
value_listint322With DATATYPE_LOOKUP or DATATYPE_MULTI_SELECT_LOOKUP, the value list or object type whose item the objects refer to. Both data types find objects that refer to the item through a lookup or a multi-select lookup property.
data_functionDataFunctionCall3Function that modifies the typed value.
parent_child_behaviorParentChildBehavior4Parent-child behaviour, used within hierarchic value lists.Values: PARENT_CHILD_BEHAVIOR_NONE (0), PARENT_CHILD_BEHAVIOR_INCLUDE_CHILD_VALUES (1), PARENT_CHILD_BEHAVIOR_INCLUDE_PARENT_VALUES (2).

Nested message AnyFieldData

Expression for values of any field (any property, file name etc.).

A full-text search. Use it with CONDITION_TYPE_CONTAINS and a non-empty text value.

Full name: MFiles.ExpressionUnion.AnyFieldData

FieldTypeNumberDescription
optionsFTSFLAGS1Full-text search flags. Set search_metadata, search_filedata or both; with neither, the search fails with "Invalid search condition." See FTSFLAGS.

Nested message PermissionsData

Expression for permissions (ACL).

Full name: MFiles.ExpressionUnion.PermissionsData

FieldTypeNumberDescription
typePermissionsExpressionType1A more detailed type specification of the permissions expression.Values: PERMISSIONS_EXPRESSION_TYPE_ACL (0), PERMISSIONS_EXPRESSION_TYPE_VISIBLE_TO (1), PERMISSIONS_EXPRESSION_TYPE_EDITABLE_BY (2), PERMISSIONS_EXPRESSION_TYPE_PERMISSIONS_CHANGEABLE_BY (3), PERMISSIONS_EXPRESSION_TYPE_FULL_CONTROL_BY (4), PERMISSIONS_EXPRESSION_TYPE_DELETABLE_BY (5), PERMISSIONS_EXPRESSION_TYPE_OBJECTS_ATTACHABLE_TO_THIS_ITEM_BY (6).