OCR Templates (GET)

Retrieve a list of active OCR templates. You can also fetch the OCR templates by document type and target object that are associated with the OCR templates.

Resource 

1/connect/form-reader/ocrTemplates

Examples 

1https://{yourInstance}.salesforce.com/services/data/vXX.X/connect
2/form-reader/ocrTemplates?documentTypeId=OdeRM00000000Dj

{yourInstance} is the domain name of your Salesforce instance.

1https://{yourInstance}.salesforce.com/services/data/vXX.X/connect
2/form-reader/ocrTemplates?targetObjects=Account,BusinessMilestone
1https://{yourInstance}.salesforce.com/services/data/vXX.X/connect
2/form-reader/ocrTemplates?documentTypeId=OdeRM00000000Dj&targetObjects=Account.AccountRecordType1

Available Version 

55.0

Requires Chatter 

No

HTTP Methods 

GET

Request Parameters for GET 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
documentTypeIdStringID of the document type associated with the OCR template.Optional55.0
targetObjectsStringList of the target object names associated with the OCR template. You can also specify a target object with record type.Optional55.0

Response Body for GET 

Template Collection Output