Flow for Intelligent Document Reader
OcrSampleDocument
OcrTemplate
Settings
IndustriesSettings
Industries Object Access by Community License
Access Industries Features Deployed Using Managed Packages
Previous Versions
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.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.
Important
The OcrSampleDocument type doesn’t need to represent a real sample document. It can also be an abstract document that represents all documents of the same DocumentType. In such cases, the contentAsset and documentHeight fields are null.
OcrSampleDocument components have the suffix .ocrSampleDocument and are stored in the ocrSampleDocuments 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.
This field is null if the OcrSampleDocument is an abstract document representing the DocumentType.
Note
This field is null if the OcrSampleDocument is an abstract document representing the DocumentType.
Note
Represents the details of the field in a form whose value is extracted and mapped to a Salesforce object field.
true) or not (false). Available in API version 57.0 and later.This field helps to distinguish auto-extracted keys from manual ones.
Note
This field is null if the OcrSampleDocument is an abstract document representing the DocumentType.
Note
Represents a collection of fields that define a page in the OCR sample document. This type exists only if the OcrSampleDocument is a real sample document and not an abstract document representing the DocumentType.
Represents a foreign key reference to the item on the sample document page containing a value for the page item.
true) or not (false). Available in API version 56.0 and later.falseTABLE. Available in API version 56.0 and later.The following is an example of a OcrSampleDocument component.
1<?xml version="1.0" encoding="UTF-8"?>
2<OcrSampleDocument xmlns="http://soap.sforce.com/2006/04/metadata">
3 <contentAsset>asset_01jpeg</contentAsset>
4 <documentHeight>1.24</documentHeight>
5 <documentType>Form</documentType>
6 <masterLabel>Form</masterLabel>
7 <ocrSampleDocumentFields>
8 ...<cellColumnNumber>1</cellColumnNumber>
9 <cellColumnSpanValue>1</cellColumnSpanValue>
10 <cellRowNumber>1</cellRowNumber>
11 <cellRowSpanValue>1</cellRowSpanValue>
12 <fieldLabelMaxX>0.5975854</fieldLabelMaxX>
13 <fieldLabelMaxY>0.46625894</fieldLabelMaxY>
14 <fieldLabelMinX>0.5065626</fieldLabelMinX>
15 <fieldLabelMinY>0.39605626</fieldLabelMinY>
16 <keyContent>Last Name</keyContent>
17 <ocrSampleDocument>image240</ocrSampleDocument>
18 <ocrSampleDocumentPage>1</ocrSampleDocumentPage>
19 <ocrSampleDocumentPageItem>
20 <hasHeader>false</hasHeader>
21 <sequenceNumber>1</sequenceNumber>
22 <title>Table1</title>
23 <type>TABLE</type>
24 </ocrSampleDocumentPageItem>
25 </ocrSampleDocumentFields>
26 <ocrSampleDocumentPages>
27 <ocrSampleDocument>Form</ocrSampleDocument>
28 <pageHeight>1.0</pageHeight>
29 <pageNumber>1</pageNumber>
30 </ocrSampleDocumentPages>
31 <ocrSampleDocumentPages>
32 <ocrSampleDocument>Form</ocrSampleDocument>
33 <pageNumber>2</pageNumber>
34 </ocrSampleDocumentPages>
35</OcrSampleDocument>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>DocumentType</name>
6 </types>
7 <types>
8 <members>*</members>
9 <name>ContentAsset</name>
10 </types>
11 <types>
12 <members>*</members>
13 <name>OcrSampleDocument</name>
14 </types>
15 <version>68.0</version>
16</Package>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.