Overview

Upload a document and link it to a parent record.

Request Arguments

Name Type Description Required
sugar_mr_id String The ID of the DocumentMerge record Yes
gen_doc_id String The ID of the Document record to be created Yes
use_revision boolean Indicates whether to use revsions or not when creating the document No (default is true)
record_module String The module of the record from which the merge was initiated Yes
record_id String The ID of the record from which the merge was initiated Yes
parent_module String If the merge was initiated from a subpanel send the parent record module also No
parent_id String If the merge was initiated from a subpanel send the parent record ID also No

Response

Document ID
@throws SugarException

Change Log

Version Change
v11_14 Added /DocumentMerge/createDocument POST endpoint.