Skip to main content

Notifications

Announcements

No record found.

Automatically Recalculate Rollup fields using JavaScript in Dynamics 365 CE

    Roll-up fields in Dynamics 365 CE typically take around an hour to recalculate values, unless done manually. To manually trigger the recalculation, simply click on the calculator icon adjacent to the label, which will activate the “Recalculate” button.

    The automatic recalculation is contingent upon a system job running in the background of the CRM. In this article, we will explore the process of triggering a recalculation of roll-up fields using sub-grid events.

  • I have created a custom whole number field in accounts entity named No of Contacts and set the behaviour as rollup. 

  • Click on “Edit” below the behaviour field, and it will open the new window to set the rollup field. I have set the Related Entity as Contact and Aggregation as Count of Contact. Then Save and publish the field.

  • Add the field to the Accounts main form, then save and publish the form.
See the original Blog post

This was originally posted here.

Comments

*This post is locked for comments