Record Update with Content Documents

Update an existing record in a Salesforce object using a document based on a content document record.

Resource 

1/connect/form-reader/contentDocuments/CONTENT_DOCUMENT_ID/record/TARGET_RECORD_ID

Resource Example 

1https://YOUR_INSTANCE.salesforce.com/services/data/vXX.X/connect​/form-reader/contentDocuments/CONTENT_DOCUMENT_ID/record/TARGET_RECORD_ID

Available Version 

55.0

Requires Chatter 

No

HTTP Methods 

PATCH

Request Body for PATCH 

Root XML tag 

<DocumentProcessInput>

JSON Example 

1{
2  "documentTypeId": "0dexx0000000001",
3  "overrideConfidenceScoreThreshold": 100,
4  "ignoreFieldValueConflict": false,
5  "attachDocument": true,
6  "fieldsWithoutConflictList": {
7    "noConflictFields": [
8      {
9        "field": "name"
10      },
11      {
12        "field": "accountnumber"
13      }
14    ]
15  }
16  "templateApiName": "sample_template"
17}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
additionalFieldsMap<String, Object>List of additional fields that you want to create or update in the target object and which are not present in the Intelligent Document Reader field mappings.Optional55.0
attachDocumentBooleanIndicates whether to automatically create the DocumentChecklistItem (DCI) and ContentDocumentLink records to link the document to the target object (true) or not (false).
Default value is false.
Optional55.0
documentTypeIdStringID of the document type for the document checklist item.Optional55.0
fieldsWithout​ConflictListFields Without Conflict Input[]List of fields that must not have any conflicts for the record creation or update process.Optional55.0
ignoreFieldValue​ConflictBooleanIndicates whether to ignore conflicts in OCR (true) or not (false).
Default value is false.
Optional55.0
linkedObjectIdStringID of the linked object record.Optional55.0
objectApiNameStringAPI name of the target object in which you want to create or update a record.Optional55.0
overrideConfidence​ScoreThresholdIntegerConflict confidence score threshold value for the extracted value.
Note: The value of this field overrides the confidence score threshold value set on the user interface.
Optional55.0
recordTypeIdStringID of the record type of the target object.Optional55.0
templateApiNameStringAPI name of the document template to retrieve.Optional59.0

Response Body for PATCH 

Document Process Output