Split Documents

Split a document and attach one or more pages from the transformed document to Salesforce records.

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 

Replace {yourInstance} with the My Domain name of your Salesforce org, and replace {XX.X} with the API version.

1https://{yourInstance}.salesforce.com/services/data/v{XX.X}/connect​/document-automation/contentDocuments/0ioRM0000004CqTYAU/linkedObjects/0OxRM0000004CqTYAU

Available Version 

55.0

Requires Chatter 

No

HTTP Methods 

POST

Request Parameters for POST 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
contentDocumentIDStringThe ID of the content document to be split.Required55.0
linkedObjectIDStringThe ID of the linked object with which the split document must be associated. This is the ID of the DocumentChecklistItem object for Salesforce.Required55.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 

NameTypeDescriptionRequired or OptionalAvailable Version
isOcrRequestedBooleanIndicates 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.
Optional55.0
linkedObjectFieldsMapMap<String, String>Represents the map that contains the linked object fields. For example, the linked object is the Document Checklist Item for Salesforce.Optional55.0
pageSpecificationListPage Specification List Input[]The page specifications list representation.Required55.0
targetFileNameStringThe name of the target file that is created from the split document.Optional55.0

Response Body for POST 

Document Management Result