Newer Version Available
Index
Represents an index defined within a custom big
object. Use this metadata type to define the composite primary key (index) for a
custom big object.This type extends the Metadata
metadata type and inherits its fullName field.
File Suffix and Directory Location
Indexes are user-defined and are part of the custom object definition for big objects. See CustomObject for more information.
Version
The Index type is available in API version 41.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| fields | IndexField[] | The definition of the fields in the index. |
IndexField
Defines which fields make up the index, their order, and sort direction. The order in which the fields are defined determines the order fields are listed in the index.
| Field Name | Field Type | Description |
|---|---|---|
| name | string | Required. The API name for the field that’s part of the index. This value must match the value of the fullName value for the field in the fields section and be marked as required. |
| sortDirection | string | Required. The sort direction of the field in the index. Valid values are ASC for ascending order and DESC for descending order. |