Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
Hello, I need to update a custom rollup field automatically created in cases. It calculates the time of a case after posting on a service appointment. I mean, when a service appointment is created, updated or deleted; time changes in the case.
I tried with calculaterollupfieldrequest, but I have constantly bugs or nothin happens in the crm.
Just use this workflow utility is very helpful :
The syntaxt of calculaterollupfield message is simple. Refer below-
CalculateRollupFieldRequest crfr = new CalculateRollupFieldRequest
Target = new EntityReference("new_class", classId),
FieldName = "new_totalstudents"
CalculateRollupFieldResponse response = (CalculateRollupFieldResponse)service.Execute(crfr);
Alternatively as suggested above, you can use Dynamics 365 Workflow Tools and use the pre-built activity to calculate rollup fields. This tool can be usefull for other needs as well if required.
Hope this help
Business Applications communities