Answer the question
In order to leave comments, you need to log in
How to create a new variable type in Bitrix24 business processes?
Good afternoon!
Is it possible to create a new type of variables for Bitrix24 business processes?
For example, in the "Request additional information" activity, you need to select the department in which the employee is located. You can, of course, take a list of existing ones and sew them up manually, but if the structure changes, then the list will have to be edited. And if the list of departments is pulled up by itself, for example, when choosing the type "Link to company structure", then it will be much easier.
I heard that it is possible to create new types of custom fields, but this is clearly a different situation.
Tell me, is there such a possibility at all?
Answer the question
In order to leave comments, you need to log in
The built-in variable type is also available there - Binding to infoblock sections -> Subdivisions
Understand the terminology:
There is a "property type" and it is used mainly to describe the properties of infoblocks (PROPERTY_*).
There is a "custom field type" and it describes the UF_* structures
. There is a "variable type" which in fact stores the real value.
If we are talking about the 'Universal lists' module, then it is built on the basis of infoblocks and in order to be able to use non-standard types in it, you just need to register your property type, however, there are a couple of notes:
- It should not inherit the types 'directory', 'SectionAuto ', 'SKU', 'EAutocomplete'
- It must have a GetPublicEditHTML method
- It must have the variable's base type (PROPERTY_TYPE) in its description.
This will allow you to query and display the data, however without manipulating it (printable and other modifiers will not be available)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question