$updateComm = CRest::call(
'crm.timeline.comment.add',
array(
'fields' => array(
'ENTITY_ID' => $dealId,
'ENTITY_TYPE' => 'deal',
'COMMENT' => ''
)
)
);
$responsibleId = 123;
$responsibleName = "Иван Иванов";
$updateComm = CRest::call(
'crm.timeline.comment.add',
array(
'fields' => array(
'ENTITY_ID' => $dealId,
'ENTITY_TYPE' => 'deal',
'COMMENT' => "Ответственный: $responsibleName (#$responsibleId)"
)
)
);