# AutomaticValueType

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) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

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

Types of automatic values.

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

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-AUTOMATIC_VALUE_TYPE_NONE"></a>`AUTOMATIC_VALUE_TYPE_NONE` | 0 | Not an automatic value. |
| <a id="v-AUTOMATIC_VALUE_TYPE_CALCULATE_WITH_TEMPLATE"></a>`AUTOMATIC_VALUE_TYPE_CALCULATE_WITH_TEMPLATE` | 1 | A string with propertydef placeholders, similar to notification templates. |
| <a id="v-AUTOMATIC_VALUE_TYPE_CALCULATED_WITH_CODE"></a>`AUTOMATIC_VALUE_TYPE_CALCULATED_WITH_CODE` | 2 | VBScript code that calculates the property. |
| <a id="v-AUTOMATIC_VALUE_TYPE_FIXED_VALUE_WITH_INCREMENT"></a>`AUTOMATIC_VALUE_TYPE_FIXED_VALUE_WITH_INCREMENT` | 3 | Simple automatic numbering: last used value and increment. Calculated once. |
| <a id="v-AUTOMATIC_VALUE_TYPE_FIXED_VALUE_WITH_CODE"></a>`AUTOMATIC_VALUE_TYPE_FIXED_VALUE_WITH_CODE` | 4 | VBScript code that produces the automatic number. Calculated once. |

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

## Used in fields

- [`PropertyDef.automatic_value_type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyDef/index.md#f-automatic_value_type): Defines the type of the automatic value of this field, if any.
