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 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.
Important
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.
true) or not (false).Represents the details of the object to which information from a form is extracted and mapped.
Represents the details of how information from a form field is mapped to fields in an object.
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:
FormFieldTableColumnRepresents the details of the field in a form whose value is extracted and mapped to a Salesforce object field.
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.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.
The following is an example of a OcrTemplate component.
1<?xml version="1.0" encoding="UTF-8"?>
2<OcrTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
3 <active>false</active>
4 <documentType>Form</documentType>
5 <masterLabel>Form Test 222</masterLabel>
6 <ocrTargetObjects>
7 <ocrTargetObjFieldMappings>
8 <ocrSampleDocField>
9 <cellColumnNumber>1</cellColumnNumber>
10 <cellColumnSpanValue>1</cellColumnSpanValue>
11 <cellRowNumber>1</cellRowNumber>
12 <cellRowSpanValue>1</cellRowSpanValue>
13 <fieldLabelMaxX>0.5975854</fieldLabelMaxX>
14 <fieldLabelMaxY>0.46625894</fieldLabelMaxY>
15 <fieldLabelMinX>0.5065626</fieldLabelMinX>
16 <fieldLabelMinY>0.39605626</fieldLabelMinY>
17 <keyContent>Last Name</keyContent>
18 <ocrSampleDocument>image240</ocrSampleDocument>
19 <ocrSampleDocumentPage>1</ocrSampleDocumentPage>
20 <ocrSampleDocumentPageItem>
21 <hasHeader>false</hasHeader>
22 <sequenceNumber>1</sequenceNumber>
23 <title>Table1</title>
24 <type>TABLE</type>
25 </ocrSampleDocumentPageItem>
26 </ocrSampleDocField>
27 <targetField>Account.Name</targetField>
28 <type>TableColumn</type>
29 </ocrTargetObjFieldMappings>
30 <targetObject>Account</targetObject>
31 <targetObjectRecordType>Account.X240</targetObjectRecordType>
32 </ocrTargetObjects>
33 <ocrTemplateSampleDocuments>
34 <ocrSampleDocument>Form</ocrSampleDocument>
35 </ocrTemplateSampleDocuments>
36 <pageCount>10</pageCount>
37 <templateName>Form Test</templateName>
38</OcrTemplate>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>OcrTemplate</name>
6 </types>
7 <version>68.0</version>
8</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.