Documentation

crm.documentgenerator.template.add

crm.documentgenerator.template.add(fields)

The method adds a new template. Returns the same information as when calling crm.documentgenerator.template.get() in a new template.

Parameters

Parameter Description
fieldsarray of template fields, including:
  • fields[name] - template name (required).
  • fields[file] - file content, encoded in base64 (required). As an alternative, file content can be passed in multipart / form-data. In this case, base64 encoding is not required.
  • fields[numeratorId] - numerator id (required).
  • fields[region] - country (required).
  • fields[entityTypeId] - array of associated entity identifiers (required). Deal code must be passed with filter parameters for order directions.
  • fields[users] - array of access permissions.
  • fields[active] - active status Y/N flag.
  • fields[withStamps] - Y/N enable stamps and signatures.
  • fields[sort] - sorting index.


Examples



© «Bitrix24», 2001-2024