Custom Fields for Estimates: Overview of Methods
Custom fields store information about an estimate in various data formats: string, number, link, address, and others.
Quick navigation: all methods
User documentation: Custom fields in CRM
Types of Custom Fields
Use the method crm.userfield.types to retrieve the available types of custom fields. The method will return the ID and name of the field types.
(
[ID] => double
[title] => Number
)
Use the method crm.userfield.fields to get a list of characteristics of custom fields. The method will return the codes of the characteristics along with their type and name.
[MANDATORY] => Array
(
[type] => char
[title] => Mandatory
)
Custom Field Settings
Use the method crm.userfield.settings.fields to obtain a list of available settings. The method will return the supported settings for the requested field type.
[DEFAULT_VALUE] => Array
(
[type] => double
[title] => Default value
)
[PRECISION] => Array
(
[type] => int
[title] => Precision
)
Errors When Working with Custom Fields
When creating or deleting custom fields, the request may be interrupted with an error INTERNAL_SERVER_ERROR. This is an internal server error. The cause of the error can be found in the server logs at the time of the request:
- In cloud Bitrix24, submit a request to technical support to get details about the error.
- In on-premise Bitrix24, request the server error log from the server administrator or hosting administrator. Then, contact technical support and attach the log for analysis.
Common Causes of Server Errors
-
You can create 1016 custom fields for estimates — this is a limitation of the database architecture. If there are already 1016 fields for estimates in Bitrix24, attempting to create a new field will result in the method crm.quote.userfield.add returning an error INTERNAL_SERVER_ERROR.
You can check the number of custom fields for estimates using the method crm.quote.userfield.list.
-
There is a limitation on servers for the execution time of a single request —
max_execution_time. The standard time is 60 seconds. If the request takes longer, it is interrupted with an error INTERNAL_SERVER_ERROR.The time for creating or deleting a custom field for an estimate depends on the number of estimates. When a field is created, it is added to all estimate detail forms. When a field is deleted, it is removed from all detail forms. The fewer estimates you have in your Bitrix24, the faster fields are created and deleted.
To check the number of estimates in Bitrix24, use the method crm.quote.list.
Overview of Methods
Scope:
crmWho can execute the methods: depending on the method
|
Method |
Description |
|
Creates a new custom field for estimates |
|
|
Updates an existing custom field for estimates |
|
|
Returns a custom field for estimates by ID |
|
|
Returns a list of custom fields for estimates by filter |
|
|
Deletes a custom field for estimates |
|
Event |
Triggered |
|
When a custom field is added |
|
|
When a custom field is updated |
|
|
When a custom field is deleted |
|
|
When the set of values for a custom field of list type is changed |