Dynamics CRM 2016中的汇总字段

时间:2017-01-11 08:37:35

标签: dynamics-crm-2016

有没有办法强制汇总字段进行计算,而不是必须刷新"表格上的字段?

1 个答案:

答案 0 :(得分:1)

更新组件字段时,您可以在插件中使用CalculateRollupFieldRequest

CalculateRollupFieldRequest request= new CalculateRollupFieldRequest
{
    Target = new EntityReference("<entityname>", recordId),
    FieldName = "<rollup field to refresh>"
};

CalculateRollupFieldResponse response = (CalculateRollupFieldResponse)service.Execute(request);