有没有办法强制汇总字段进行计算,而不是必须刷新"表格上的字段?
答案 0 :(得分:1)
更新组件字段时,您可以在插件中使用CalculateRollupFieldRequest
:
CalculateRollupFieldRequest request= new CalculateRollupFieldRequest
{
Target = new EntityReference("<entityname>", recordId),
FieldName = "<rollup field to refresh>"
};
CalculateRollupFieldResponse response = (CalculateRollupFieldResponse)service.Execute(request);