OcrTemplate
Represents the details of the mapping between a form and a Salesforce object using Intelligent Document Reader.This type extends the Metadata metadata type and inherits its fullName field.
Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
OcrTemplate components have the suffix .ocrTemplate and are stored in the ocrTemplates folder.
OcrTemplate components are available in API version 55.0 and later.
To use this metadata type, your Salesforce org must have the AWSTextract1000LimitAddOn or IntelligentDocumentReaderAddOn license.
- Field Type: boolean
- Description: Indicates whether the OCR template is active (
true) or not (false).
- Field Type: string
- Description: The description of the OCR template.
- Field Type: string
- Description: Required. The document type for which this template defines mappings.
- Field Type: string
- Description: Required. The label for the OCR template.
- Field Type: OcrTargetObject[]
- Description: Represents the details of the object to which information from a form is extracted and mapped.
- Field Type: OcrTemplateSampleDocument[]
- Description: Represents the details of a sample document or a document type that’s used as a reference while extracting and mapping information from a customer form.
- Field Type: integer
- Description: The number of pages in the form from which information is extracted.
- Field Type: string
- Description: Required. The name of the OCR template.
Represents the details of the object to which information from a form is extracted and mapped.
- Field Type: OcrTargetObjFieldMapping[]
- Description: Represents the details of how information from a form field is mapped to fields in an object.
- Field Type: string
- Description: Required. The object to which information from a form is mapped.
- Field Type: string
- Description: The developer name of the record type of the target object. Available in API version 56.0 and later.
Represents the details of how information from a form field is mapped to fields in an object.
- Field Type: OcrSampleDocumentField[]
- Description: The details of the field in a form whose value is extracted and mapped to a Salesforce object field.
- Field Type: string
- Description: Required. The field to which information is mapped.
-
Field Type: OcrMappingType (enumeration of type string)
-
Description: Required. Specifies the type of mapping. Available in API version 56.0 and later.
-
Default value:
FormField -
Possible values:
FormFieldTableColumn
Represents the details of the field in a form whose value is extracted and mapped to a Salesforce object field.
- Field Type: int
- Description: The column number in the item with the cell storing this field’s value. Available in API version 56.0 and later.
- Field Type: int
- Description: The number of columns that span the cell storing this field’s value. Available in API version 56.0 and later.
- Field Type: int
- Description: The row number in the item with the cell storing this field’s value. Available in API version 56.0 and later.
- Field Type: int
- Description: The number of rows that span the cell storing this field’s value. Available in API version 56.0 and later.
- Field Type: double
- Description: A normalized coordinate representing the right edge of the bounding box of the key.
- Field Type: double
- Description: A normalized coordinate representing the bottom edge of the bounding box of the key.
- Field Type: double
- Description: A normalized coordinate representing the left edge of the bounding box of the key.
- Field Type: double
- Description: A normalized coordinate representing the top edge of the bounding box of the key.
- Field Type: string
- Description: The name of the referred field value. Available in API version 56.0 and later.
- Field Type: string
- Description: The content in a particular area of the form, representing the field that is extracted by OCR.
- Field Type: string
- Description: Required. The associated OCR sample document used as a reference while extracting and mapping information from a customer form.
- Field Type: string
- Description: A collection of fields that define a page in the OCR sample document.
- Field Type: OcrSampleDocumentPageItem[]
- Description: A reference to the item on the sample document page containing this field’s value. Available in API version 56.0 and later.
Represents a foreign key reference to the item on the sample document page containing a value for the page item.
- Field Type: boolean
- Description: Indicates whether the OCR sample document page item has a header (
true) or not (false). Available in API version 56.0 and later. - Default value:
false
- Field Type: int
- Description: Required. The sequence number of the item on an OCR sample document page with multiple items. Available in API version 56.0 and later.
- Field Type: string
- Description: The title of the OCR sample document page item. Available in API version 56.0 and later.
- Field Type: ItemType (enumeration of type string)
- Description: Required. Specifies the type of OCR sample document page item. Valid value is
TABLE. Available in API version 56.0 and later.
Represents the details of a sample document or a document type that’s used as a reference while extracting and mapping information from a customer form.
- Field Type: string
- Description: The associated OCR sample document used as a reference while extracting and mapping information from a customer form.
The following is an example of a OcrTemplate component.
The following is an example package.xml that references the previous definition.
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.