In a recent Pragmatic Works tutorial, the presenter explores how to automatically recalculate rollup columns in Dataverse using Power Automate. Rollup columns are a powerful feature, but they only recalculate hourly by default, making real-time data reporting challenging. This guide walks through how to automate rollup column calculations on demand.
Rollup columns in Dataverse automatically calculate aggregated values from related tables, such as the total number of job applicants for a job opening. However, they refresh only once per hour by default, which can be a limitation when real-time reporting is required.
In the scenario presented, a customer needed the rollup column for the number of job applicants to update immediately after a new applicant was added. Waiting an hour was not an acceptable solution for their reporting needs. Power Automate provides a way to trigger an instant recalculation.
The tutorial demonstrates how to create a Power Automate flow that recalculates a rollup column automatically whenever a new record is added.
To force a rollup column recalculation, the presenter uses the Dataverse Web API with Power Automate. This involves making an HTTP request using a pre-authorized Microsoft Entra connector.
The API request requires three components:
The presenter demonstrates how to locate the entity set name and rollup column name using Power Apps advanced tools.
The final step involves dynamically passing the record ID (GUID) into the API call.
The presenter tests the automation by submitting a new job application. Within seconds, the rollup column updates automatically, reflecting the new applicant count without waiting for the default hourly refresh.
This Power Automate solution is ideal for scenarios where real-time data updates are essential, such as job applicant tracking. By using Dataverse's Web API and the pre-authorized Entra connector, organizations can automate rollup column recalculations efficiently.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Automate and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.