*** NOTE: ALL INFORMATION IS ACCURATE AT DATE OF PUBLISHING ***
Rollup fields in CRM allow you to create a rolled up summary of data from other connected records in the database. In this example, let’s create a field to show when an Opportunity was last contacted. We will select Date and Time as the Data Type, and Rollup as the Field Type. Once Rollup has been selected, click on the Edit button that appears.
From here we can set the calculation we need. We want to use data from Activities regarding the Opportunity. This is selected in the Related Entities section. We will apply a filter to only rollup information if the Activity Status is Completed. You may have other requirements to determine if you want to factor an activity in to figure out the Last Contacted Date or not. You can add additional conditions if needed. Finally, we want to use the MAX, or most recent, Actual End date from all of the related activities regarding the Opportunity.
Finally, add this to your form. The field will rollup and be recalculated every 12 hours by default. However, you can manually recalculate the field by clicking to the right and refreshing. We can see here that the date and time will be added to the field so we can see exactly when the Opportunity was last contacted.
Check out the latest post:
Checking User Access To Model-driven Apps (D365 CE)
This is just 1 of 338 articles. You can browse through all of them by going to the main blog page, or navigate through different categories to find more content you are interested in. You can also subscribe and get new blog posts emailed to you directly.