разобрался
$bindingResult = Bitrix\Crm\Order\EntityBinding::getList([
'select' => ['*'],
'filter' => [
'=ORDER_ID' => $arResult['ORDER_ID'],
],
'order' => ['ORDER_ID' => 'ASC'],
]);
while ($bindingData = $bindingResult->fetch()) {
if ($bindingData['OWNER_TYPE_ID'] == '2') {
$dealId = $bindingData['OWNER_ID'];
}
// к ID, номеру ниже, нужно добавить свойсвто
$dealId = $bindingData['OWNER_ID'];
}
$userId = 8820;
$arOptions = array(
"CURRENT_USER" => 8820 //из под кого обновляем
);
$deal = new \CCrmDeal(false);
$arUpdateData = array("UF_CRM_DEAL_3821563816087" => $arResult['ACCOUNT_NUMBER']); //поля которые обновляем
$arOptions = array();
$upRes = $deal->Update($dealId, $arUpdateData, true, true, $arOptions);