IRPCPropertyDefsAdmin.GetLastUsedValue
Administration API / specialized admin session idempotent
Gets the last number used by an automatic numbering property.
| Service | Property definition and class administration MFiles.IRPCPropertyDefsAdmin |
|---|---|
| gRPC method | /MFiles.IRPCPropertyDefsAdmin/GetLastUsedValue |
| HTTP (mf-http-grpc) | POST /grpc/v1/get-last-used-value |
| Request | GetLastUsedValueRequest |
| Response | GetLastUsedValueResponse |
| Book and level | Administration API, specialized |
| Kind | admin |
| Session | Required: the session ID from LogIn in the mfiles-session-id-bin metadata. |
| Idempotent | yes |
| Returns metadata structure version | no |
| Streaming | none (unary) |
Remarks
- Requires
read_all_metadata_structure. - For a property definition without automatic numbering the value is empty (for example property 0).
Request: GetLastUsedValueRequest
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 |
|---|---|---|
property_def | int32 | The PropertyDef to get. |
Response: GetLastUsedValueResponse
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 |
|---|---|---|
last_used_value | TypedValue | Receives the result. |
last_used_value.is_null_value | bool | True if the value is empty. data is then unset. |
last_used_value.type | Datatype | The data type of the value. |
last_used_value.data | TypedValueUnion | The value, in the member that matches type. Unset for an empty value. |
last_used_value.data.text | string (oneof data) | The value of DATATYPE_TEXT. |
last_used_value.data.integer | int32 (oneof data) | The value of DATATYPE_INTEGER. |
last_used_value.data.real_number | double (oneof data) | The value of DATATYPE_REAL_NUMBER. |
last_used_value.data.decimal_number | string (oneof data) | Fixed precision number. |
last_used_value.data.date | google.protobuf.Timestamp (oneof data) | The value of DATATYPE_DATE: midnight UTC of the date. |
last_used_value.data.time | google.protobuf.Timestamp (oneof data) | Time. |
last_used_value.data.timestamp | google.protobuf.Timestamp (oneof data) | The value of DATATYPE_TIMESTAMP, in UTC. |
last_used_value.data.boolean | bool (oneof data) | The value of DATATYPE_BOOLEAN. |
last_used_value.data.lookup | Lookup (oneof data) | The value of DATATYPE_LOOKUP: one value list item or object. |
last_used_value.data.multi_select_lookup | MultiSelectLookup (oneof data) | The value of DATATYPE_MULTI_SELECT_LOOKUP: any number of value list items or objects. |
last_used_value.data.integer64 | int64 (oneof data) | Integer (8 bytes). |
last_used_value.data.filetime | google.protobuf.Timestamp (oneof data) | FILETIME (64-bit integer). |
last_used_value.data.multi_line_text | string (oneof data) | The value of DATATYPE_MULTI_LINE_TEXT. |
last_used_value.data.acl | AccessControlList (oneof data) | Access Control List. |