public void RefreshAggregate(Guid id, XrmService service, LogController controller) { var newValue = GetAggregate(id, service); controller.LogLiteral(string.Format("Refreshing Field {0} In {1} To Value {2}", AggregateField, RecordTypeWithAggregate, newValue)); service.SetFieldIfChanging(RecordTypeWithAggregate, id, AggregateField, newValue); }
public void RefreshRollup(Guid id, LookupRollup rollup) { var newValue = GetRollup(rollup, id); XrmService.SetFieldIfChanging(rollup.RecordTypeWithRollup, id, rollup.RollupField, newValue); }