# AutomaticValue

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.AutomaticValue/

The definition of an automatic value.

- **Full name:** `MFiles.AutomaticValue`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-automatic_numbering_increment"></a>`automatic_numbering_increment` | `int32` | 1 | Simple automatic numbering: Increment. |
| <a id="f-automatic_numbering_code"></a>`automatic_numbering_code` | `string` | 2 | Automatic numbering with VBScript: VBScript code. |
| <a id="f-calculated_value_template"></a>`calculated_value_template` | `string` | 3 | Simple calculated value: Expression. |
| <a id="f-calculated_value_code"></a>`calculated_value_code` | `string` | 4 | Calculated value with VBScript: VBScript code. |
| <a id="f-calculation_order"></a>`calculation_order` | `int32` | 5 | A number that specified calculation order. Properties are calculated from smallest to largest calculation order number. |

<a id="used-in-fields"></a>

## Used in fields

- [`PropertyDefAdmin.automatic_value`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyDefAdmin/index.md#f-automatic_value): The definitions for automatic value generation.
