Fetch Active OCR Templates Action
Use this action to automate OCR template selection for the text extracted from an uploaded document.
Special Access Rules
This action is available in API version 58.0 and later for users with the AWSTextract1000LimitAddOn or IntelligentDocumentReaderAddOn license.
Supported REST HTTP Methods
- URI
- /services/data/vXX.X/actions/standard/fetchActiveOcrTemplates
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
Input | Details |
---|---|
documentTypeId |
|
targetObjects |
|
Outputs
Output | Details |
---|---|
ocrTemplates |
|
Example
Sample Request
{
"inputs":[
{
"documentTypeId":"0deT10000004CCbIAM,0ghT11000004CCbIF",
"targetObjects":"Account,Contact"
}
]
}
Sample Response
[
{
"actionName":"fetchActiveOcrTemplates",
"errors":null,
"isSuccess":true,
"outputValues":{
"ocrTemplates":{
"ocrTemplates":[
{
"ocrTemplateId":"48tT1000000004IIAQ",
"ocrTargetObjects":[
{
"targetObjectRecordType":null,
"targetObject":"Account",
"ocrTargetObjectId":"97hT100000000HjIAI"
},
{
"targetObjectRecordType":null,
"targetObject":"CareDiagnosis",
"ocrTargetObjectId":"97hT100000000HoIAI"
}
],
"name":"bb",
"documentTypeId":"0deT10000004CCbIAM",
"developerName":"bb"
},
{
"ocrTemplateId":"48tT10000004CF1IAM",
"ocrTargetObjects":[
{
"targetObjectRecordType":null,
"targetObject":"Account",
"ocrTargetObjectId":"97hT10000004CelIAE"
}
],
"name":"scrlicense",
"documentTypeId":"0deT10000004CCbIAM",
"developerName":"scrlicense"
},
{
"ocrTemplateId":"48tT1000000004NIAQ",
"ocrTargetObjects":[
{
"targetObjectRecordType":null,
"targetObject":"Contact",
"ocrTargetObjectId":"97hT100000000HtIAI"
}
],
"name":"bb2",
"documentTypeId":"0ghT11000004CCbIF",
"developerName":"bb2"
}
]
}
},
"version":1
}
]