Доброе утро.
Составил Fetch, ставлю на OnSave пишет ошибка на странице и тишина.........
Что-то тут не так, знающие люди посмотрите код

Спасибо
function getFetchXml(){
return '<fetch mapping='logical' aggregate='SUM'>
<entity name='equipment'>
<attribute name='name'/>
<link-entity name='new_equipment_contractdetail' from='equipmentid' to='equipmentid'/>
</entity>
</fetch>';
}
crmForm.all.new_count.DataValue = return;