S
S
Sas32322022-02-24 16:19:58
1C-Bitrix
Sas3232, 2022-02-24 16:19:58

How to get a representation of the value of a generic list field if the field type is a list?

B24 has created a universal list with the necessary data, the data needs to be transferred to 1s Accounting. Through the request lists.element.get I get the data and the problem. There, a bunch of fields have a list field type and in the list field setting, fixed list values ​​\u200b\u200bare set, for example, kW / h, cubic meters, kg, etc. In 1C, a correspondence is returned to the field value in which the ids of a fixed list are written, but there is no representation. I re-read the help on https://dev.1c-bitrix.ru/rest_help/lists/section/i... , nothing suitable, how to get an idea is not clear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sas3232, 2022-02-25
@Sas3232

I'll answer myself. You need to use the "lists.field.get" method, which gets descriptions of the list fields. For a field containing a list of fixed values, in the response to the request, the property "DISPLAY_VALUES_FORM" will appear, in which there will be a correspondence with the code and presentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question