{% note tip "" %}
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
{% endnote %}
A workflow template is a logical scheme. It implements business logic using actions and operations within the workflow designer.
{% note info "" %}
Methods for adding, updating, and deleting templates work only within the context of an ../../../settings/app-installation/index.md application. Only the application that created a template can update or delete it.
{% endnote %}
Quick navigation: All Methods
User documentation:
The bizproc.workflow.template.add method adds a template to Bitrix24 from a file with the .bpt extension. To obtain the file, configure a workflow template and export it.
The resulting file can be used as a template in any Bitrix24 instance.
{% note tip "User documentation" %}
{% endnote %}
Each template is linked to a base object whose data it manages. For example, a template can be linked to CRM deals. In this case, the base object will be the specific deal for which the workflow is launched.
The link to the base object determines the launch context: you cannot launch a process for a lead using a template designed for a deal.
A template is linked to a document via the DOCUMENT_TYPE parameter, which is an array consisting of three items:
- module identifier
- object type
- document type
For example, ['crm', 'CCrmDocumentLead', 'LEAD'].
The values in the array are interconnected. If the first item is 'crm', the remaining items must correspond to CRM. It is important to ensure the correctness of these values.
Module Identifier. Specifies the scope of application for the workflow template.
crm— CRMlists— Common Listsdisk— Bitrix24 Drive
Object Identifier. An object within the specified module. For example, in CRM, an object could be a lead or a deal.
CRM
CCrmDocumentLead— leadsCCrmDocumentContact— contactsCCrmDocumentCompany— companiesCCrmDocumentDeal— dealsBitrix\Crm\Integration\BizProc\Document\Quote— quotesBitrix\Crm\Integration\BizProc\Document\SmartInvoice— invoicesBitrix\Crm\Integration\BizProc\Document\Dynamic— SPAs
Lists
BizprocDocument— Workflows in FeedBitrix\Lists\BizprocDocumentLists— lists in queue groups
Drive
Bitrix\Disk\BizProcDocument
Document Type. A binding to a specific document of the specified object.
CRM
LEAD— leadsCONTACT— contactsCOMPANY— companiesDEAL— dealsQUOTE— quotesSMART_INVOICE— invoicesDYNAMIC_XXX— SPAs, where XXX is the SPA identifier
Common Lists
iblock_XXX— information block, where XXX is the information block identifier
Drive
STORAGE_XXX— drive data store, where XXX is the data store identifier
To retrieve a list of all portal templates, use the bizproc.workflow.template.list method. To retrieve a list of application templates, specify the SYSTEM_CODE field in the FILTER parameter and the application symbolic code, for example, "SYSTEM_CODE": "rest_app_5".
Scope:
bizprocWho can execute the method: depends on the method
#| || Method | Description || || bizproc.workflow.template.add | Add a business process template from a file || || bizproc.workflow.template.update | Update a template || || bizproc.workflow.template.list | Get a list of templates || || bizproc.workflow.template.delete | Delete a template || |#
