Documentation

crm.documentgenerator.document.add

crm.documentgenerator.document.add(templateId, entityTypeId, entityId, values = [])

The method creates a new document based on a template and corresponding entity data. The values can pass an array of additional field values. A new document structure, similar to the method crm.documentgenerator.document.get() is returned on success.

Parameters

Parameter Description
templateIdTemplate ID.
entityTypeIdCRM entity ID.
entityIdEntity ID.
valuesAdditional field values.


Examples



© «Bitrix24», 2001-2024