【发布时间】:2013-02-26 10:37:23
【问题描述】:
我有一个 fetchXMl,它执行简单的“求和”查询。
<fetch distinct='true' mapping='logical' aggregate='true'>
<entity name='orb_timesheetentry'>
<attribute name='orb_cost' alias='cost_sum' aggregate='sum'/>
<filter type='and'>
<condition attribute='orb_prepaidpack' operator='eq' value='{0}' />
<condition attribute='statuscode' operator='eq' value='169810003' />
</filter>
</entity>
</fetch>
问题是如果它没有找到任何记录,它会返回 null 而不是 0。
有没有办法返回 0 而不是 null?
【问题讨论】:
-
我也有同样的问题
标签: dynamics-crm-2011 fetchxml