{ "sections": [ "title", "description", "fields", "sub_types", "wsdl_segment", "declarative_metadata_sample_definition" ], "title": "Index - Metadata API", "description": "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.", "fields_columns": [ "type", "description" ], "fields": { "fields": { "type": "IndexField[]", "description": "The definition of the fields in the index." }, "label": { "type": "string", "description": "This name is used to refer to the big object in the user interface. Available in API version 41.0 and later.", "required": true } }, "sub_types": { "IndexField": { "name": { "type": "string", "description": "The API name for the field that’s part of the index. This value must match the fullName value for the corresponding field in the fields section and be marked as required. Warning: When querying a big object record via SOQL and passing the results as arguments to the delete API, if any index field name has a leading or trailing white space, you can't delete the big object record.", "required": true }, "sortDirection": { "type": "string", "description": "The sort direction of the field in the index. Valid values are ASC for ascending order and DESC for descending order.", "required": true } } }, "wsdl_segment": "```xml\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n\n```", "declarative_metadata_sample_definition": [ { "description": "The following is an example of an index contained within the definition of a custom big object, Customer_Interactions__b.object.", "code": "\n\n\n Deployed\n\n// Define the fields within the big object\n \n Purchase__c\n \n 16\n false\n Text\n false\n \n \n \n Order_Number__c\n \n 16\n false\n Text\n true\n \n \n \n Platform__c\n \n 16\n true\n Text\n false\n \n\n \n Account__c\n \n Account\n User_Account\n true\n Lookup\n \n\n \n Order_Date__c\n \n true\n DateTime\n \n\n// Define the index\n \n CustomerInteractionsIndex\n \n \n Account__c\n DESC\n \n \n Platform__c\n ASC\n \n \n Order_Date__c\n DESC\n \n \n \n \n Customer Interactions\n" } ] }