Upload the generated document and attach it to the specified entity crm.documentgenerator.document.upload

We are still updating this page

Some data may be missing — we will complete it soon

Scope: crm.documentgenerator

Who can execute the method: any user

The method crm.documentgenerator.document.upload uploads a generated document and attaches it to the specified entity. During the upload process, a hidden template is created, linked to the current REST application (one template per application). An empty file is attached to this template (since a template cannot exist without a file).

Parameter

Description

fileContent

Content of the docx file in base64.

region

Country.

entityTypeId

ID of the CRM entity type.

entityId

ID of the CRM entity.

title

Document title.

number

Document number.

pdfContent

Content of the pdf file in base64, optional.

imageContent

Content of the image in base64, optional.

Response in case of success

The method returns values similar to crm.documentgenerator.document.add.