Split Documents
For example, suppose you receive a fax containing multiple patients' documents in a single scanned copy. As needed, separate the document pages and attach the split documents to the patient's record.
Resource
1/connect/document-automation/contentDocuments/${contentDocumentId}/linkedObjects/${linkedObjectId}Resource Example
1https://yourInstance.salesforce.com/services/data/vXX.X/connect/document-automation/contentDocuments/0ioRM0000004CqTYAU/linkedObjects/0OxRM0000004CqTYAUAvailable Version
55.0
Requires Chatter
No
HTTP Methods
POST
Request Parameters for POST
| Parameter Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| contentDocumentID | String | The ID of the content document to be split. | Required | 55.0 |
| linkedObjectID | String | The ID of the linked object with which the split document must be associated. This is the ID of the DocumentChecklistItem object for Salesforce. | Required | 55.0 |
Request Body for POST
JSON Example
1{
2 "pageSpecificationList": {
3 "pageSpecifications": [
4 {
5 "page":1,
6 "rotation":0,
7 "addToTargetFile":"true"
8 },
9 {
10 "page":2,
11 "rotation":0,
12 "addToTargetFile":"true"
13 }
14 ]
15 },
16 "linkedObjectFieldsMap" : {
17 "linkedObjectFields" : {"ReceivedDocumentId" : "0ioxx00000000ODAAY"}
18 },
19 "isOcrRequested" : true
20}Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| isOcrRequested | Boolean | Indicates whether OCR is required to process the content document (true) or not (false). By default, OCR is performed on the first five pages of the content document. Note: Set this field value to true to perform OCR on all the pages of a content document that contains more than five pages. |
Optional | 55.0 |
| linkedObjectFieldsMap | Map<String, String> | Represents the map that contains the linked object fields. For example, the linked object is the Document Checklist Item for Salesforce. | Optional | 55.0 |
| pageSpecificationList | Page Specification List Input[] | The page specifications list representation. | Required | 55.0 |
| targetFileName | String | The name of the target file that is created from the split document. | Optional | 55.0 |