Smart Processes: Overview of Methods
A smart process is a versatile CRM object that can be customized to meet the needs of a company. For each smart process, Bitrix24 creates a separate section in the CRM. In this section, you can configure funnels and stages, Automation rules, fields, and connections with other Bitrix24 objects.
Quick navigation: all methods and events
User documentation: Smart Processes in CRM
Working with a Smart Process
- Create and configure the smart process — methods crm.type.*.
- Set up funnels and stages — crm.category.* for funnels and crm.status.* for stages.
- Add custom fields — userfieldconfig.*.
- Configure the item detail form — crm.item.details.configuration.*.
- Create the first items within the smart process — crm.item.*.
The smart process can be transferred from the CRM section to the Automation section via digital workplaces.
Connections with Other Objects
CRM Objects. A smart process can be linked to leads, deals, and other CRM objects. The linked object will be accessible through the field parentId{ID}, where {ID} is the numeric identifier of the CRM object.
Client. A field in the smart process detail form that consists of the associated company and contacts. There is one company in the field; change the linked company through the companyId field. There can be multiple contacts in the "Client" field. Interaction with contacts is conducted through the contactIds field — pass an array of contact IDs into the field. Enable the field with the option isClientEnabled in the method crm.type.add or crm.type.update.
Your Company Details. Specify your company ID in the mycompanyId field so that its details are automatically used in documents. You can obtain your company ID using the method crm.item.list for the company object with a filter on the isMyCompany field. Enable the field with the option isMycompanyEnabled in the method crm.type.add or crm.type.update.
Products. To add, modify, or delete product items in the smart process, use the methods crm.item.productrow.*. Enable the products tab and the "Amount and Currency" field with the option isLinkWithProductsEnabled in the method crm.type.add or crm.type.update.
Users. The smart process is linked to users by numeric identifiers in the fields:
createdBy— who created it,updatedBy— who updated it,movedBy— who changed the stage,assignedById— responsible for the item,observers— observers. Enable the field with the optionisObserversEnabledin the method crm.type.add or crm.type.update.
You can obtain the identifier and data of a user using the method user.get.
Documents. To create a document from a template, upload a new template for the smart process, or configure the numbering for documents, use the methods crm.documentgenerator.*. Enable document handling in the smart process with the option isDocumentsEnabled in the method crm.type.add or crm.type.update.
Tasks. Smart process items can be linked to tasks. To work with tasks, use the methods tasks.task.*. To make the linking option available, enable and configure the option isUseInUserfieldEnabled in the method crm.type.add or crm.type.update.
Calendar Events. Smart process items can be linked to calendar events. To work with the calendar, use the methods calendar.event.*. To make the linking option available, enable and configure the option isUseInUserfieldEnabled in the method crm.type.add or crm.type.update.
User Documentation
Smart Process Item Detail Form
The main workspace in the smart process is the "General" tab of the detail form. It consists of two parts:
-
the left part, which contains fields with information. If the system fields are insufficient, you can create your own custom fields. Fields allow you to store information in various data formats: string, number, link, address, and others. To create, modify, retrieve, or delete custom fields in the smart process, use the group of methods userfieldconfig.*.
-
the right part, which contains the smart process timeline. In it, you can create, edit, filter, and delete CRM activities — a group of methods crm.activity.*, and timeline records — a group of methods crm.timeline.*.
You can manage the parameters of the smart process detail form through the group of methods crm.item.details.configuration.*.
User Documentation
Widgets
You can embed an application into the smart process detail form. Thanks to embedding, you can use the application without leaving the item detail form.
There are two embedding scenarios:
-
use special embedding locations. For example, by creating your own tab.
-
create a custom field, where the interface of your application will be loaded.
Smart Process Embedding Locations
Replace XXX with the numeric identifier of a specific smart process, for example CRM_DYNAMIC_183_DOCUMENTGENERATOR_BUTTON.
-
CRM_DYNAMIC_XXX_DETAIL_TAB— tab in the detailed CRM item form -
CRM_DYNAMIC_XXX_DETAIL_ACTIVITY— button above the item detail timeline -
CRM_DYNAMIC_XXX_DETAIL_TOOLBAR— dropdown menu item in the upper button of the detail form -
CRM_DYNAMIC_XXX_DOCUMENTGENERATOR_BUTTON— dropdown menu item for the document generator -
CRM_DYNAMIC_XXX_LIST_MENU— context menu item in the list of items -
CRM_DYNAMIC_XXX_LIST_TOOLBAR— dropdown menu item above the list of items -
CRM_DYNAMIC_XXX_ACTIVITY_TIMELINE_MENU— context menu item for an activity in the item detail form -
CRM_DYNAMIC_XXX_ROBOT_DESIGNER_TOOLBAR— dropdown menu item in the upper button of the robot designer
Typical use-cases and scenarios
Smart Process Identifiers
Each smart process has four types of identifiers. Use the identifiers to apply a method to a specific smart process.
-
Numeric identifier of type
130. Obtain it using the method crm.enum.ownertypeIDor crm.type.listentityTypeId. -
Symbolic code of type
DYNAMIC_130— crm.enum.ownertypeSYMBOL_CODE. -
Short symbolic code of type
T82— crm.enum.ownertypeSYMBOL_CODE_SHORT. -
Custom field object type
CRM_13— crm.type.list. Substitute theidfrom the method result into the formulaCRM_ + {ID}.
Overview of Methods and Events
Scope:
crmWho can execute the method: depending on the method
Smart Processes
|
Method |
Description |
|
Creates a new smart process |
|
|
Updates the smart process |
|
|
Returns the smart process by id |
|
|
Returns the smart process by entityTypeId |
|
|
Returns a list of smart processes |
|
|
Deletes the smart process |
|
|
Returns the fields of the smart process |
|
Event |
Triggered |
|
When a smart process is created |
|
|
When a smart process is updated |
|
|
When a smart process is deleted |
Items
The CRM object identifier entityTypeId — numeric identifier type, for example 128.
|
Method |
Description |
|
Creates a new item |
|
|
Updates the item |
|
|
Returns the item by Id |
|
|
Returns a list of items by filter |
|
|
Deletes the item |
|
|
Returns the fields of the item |
|
Event |
Triggered |
|
When a smart process item is created |
|
|
When a smart process item is deleted |
|
|
When a smart process item is modified |
Funnels
The CRM object identifier entityTypeId — numeric identifier type, for example 128.
|
Method |
Description |
|
Creates a new funnel |
|
|
Updates the funnel |
|
|
Returns the funnel by Id |
|
|
Returns a list of funnels |
|
|
Deletes the funnel |
|
|
Returns the fields of the funnel |
Custom Fields
The CRM object identifier entityId — custom field object type, for example CRM_1.
|
Method |
Description |
|
Creates a custom field |
|
|
Modifies field settings |
|
|
Returns custom field settings by identifier |
|
|
Returns the set of available custom field types for the module |
|
|
Returns a list of custom field settings |
|
|
Deletes a custom field |
Managing Detail Form Settings
The CRM object identifier entityTypeId — numeric identifier type, for example 128.
|
Method |
Description |
|
Sets a common detail form for all users |
|
|
Retrieves the parameters of item detail forms |
|
|
Resets the parameters of item detail forms |
|
|
Sets the parameters of item detail forms |
Product Items
The CRM object identifier ownerType — short symbolic code type, for example T80.
|
Method |
Description |
|
Adds a product item |
|
|
Updates a product item |
|
|
Retrieves information about a product item by id |
|
|
Links a product item to a CRM object |
|
|
Retrieves a list of product items |
|
|
Retrieves a list of unpaid products |
|
|
Deletes a product item |
|
|
Retrieves a list of product item fields |