コード例 #1
0
        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);
        }
コード例 #2
0
        public void RefreshRollup(Guid id, LookupRollup rollup)
        {
            var newValue = GetRollup(rollup, id);

            XrmService.SetFieldIfChanging(rollup.RecordTypeWithRollup, id, rollup.RollupField, newValue);
        }