A
A
Alexey2016-12-22 17:31:15
1C-Bitrix
Alexey, 2016-12-22 17:31:15

How to get a value from a custom field in Bitrix24?

Good afternoon!
Please tell me how to get the value of a custom field with the data type "Binding to sections of info blocks".
I use this method, but it contains an empty VALUE:

global $USER_FIELD_MANAGER;
$CCrmFields = new CCrmFields($USER_FIELD_MANAGER, "CRM_DEAL");
$filds = $CCrmFields->GetFieldById('UF_CRM_1446923077');

UF_CRM_1446923077 - custom field id
How to get VALUE value?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-12-22
@MrSen

The right decision

global $USER_FIELD_MANAGER;
$value = $USER_FIELD_MANAGER->GetUserFieldValue('CRM_DEAL', 'UF_CRM_1446923077',1585568);

// 1585568 - ID элемента

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question