Documentation

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
fileContentcontent of docx file in base64.
regioncountry.
entityTypeIdID of CRM entity type.
entityIdCRM entity ID.
titledocument title.
numberdocument number.
pdfContent pdf file content in base64, optional.
imageContentimage content in base64, optional.

Examples



© «Bitrix24», 2001-2024