crm.documentgenerator.document.upload
crm.documentgenerator.document.upload(fileContent, region, entityTypeId, entityId, title, number)
The method uploads a generated document and attaches it to a specified entity. Hidden template is created that is attached to a current REST application (single template per each application). Empty file is attached to this template (because a template cannot exist without a file).
The method returns values, similar to crm.documentgenerator.document.add.
Parameters
Parameter | Description |
---|---|
fileContent | content of docx file in base64. |
region | country. |
entityTypeId | ID of CRM entity type. |
entityId | CRM entity ID. |
title | document title. |
number | document number. |
pdfContent | pdf file content in base64, optional. |
imageContent | image content in base64, optional. |
Examples
© «Bitrix24», 2001-2024