Newer Version Available
ServiceAISetupField
File Suffix and Directory Location
ServiceAISetupField components have the suffix .serviceAiSetupField and are stored in the serviceAiSetupFields folder.
Version
ServiceAISetupField components are available in API version 51.0 and later.
Special Access Rules
This type is available only if Einstein Article Recommendations is enabled in your org and the Main Services Agreement has been accepted.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| entity | string | Required. The Case or KnowledgeArticle object for the field. |
| field | string | Required. The API name of the field. |
| fieldMappingType | ServiceAISetupFieldType (enumeration of type string) | Required. The field type. Valid values are:
|
| fieldPosition | int | Required. A positive number used to rank the field’s importance. The value 1 is most important; higher numbers indicate less important fields. Einstein considers fields in the order of importance. |
| name | string | Required. A reference to the field. |
| setupDefinition | string | Required. A reference to the parent ServiceAISetupDefinition. |
Declarative Metadata Sample Definition
The following is an example of a ServiceAISetupField component.
The following is an example package.xml that references the previous definition.
Usage
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.