PL-400 · Question #355
A company uses Microsoft Dataverse rollup fields to calculate insurance exposure and risk profiles for customers. Users report that the system does not update values for the rollup fields when new ins
The correct answer is C. Create new fields on the customer entity for insurance exposure and risk. Write a plug-in that is. To immediately update Dataverse rollup fields after a related record is created, a custom plug-in must be used to trigger the recalculation, as out-of-the-box calculations are asynchronous.
Question
Options
- AChange the frequency of the Calculate Rollup Field recurring job from every hour to every five
- BCreate new fields on the customer entity for insurance exposure and risk. Write a workflow
- CCreate new fields on the customer entity for insurance exposure and risk. Write a plug-in that is
- DUpdate the Mass Calculate Rollup Field job to trigger when a new policy record is created.
How the community answered
(23 responses)- A4% (1)
- B9% (2)
- C83% (19)
- D4% (1)
Why each option
To immediately update Dataverse rollup fields after a related record is created, a custom plug-in must be used to trigger the recalculation, as out-of-the-box calculations are asynchronous.
Changing the frequency of the recurring job only reduces the delay but does not provide immediate recalculation upon record creation, as it still operates on a schedule.
Workflows, even real-time ones, do not have a built-in action to trigger the recalculation of Dataverse rollup fields. Workflows are generally for business process automation and data manipulation but lack direct access to trigger specific system messages like 'CalculateRollupField'.
Dataverse rollup fields are calculated asynchronously, typically on an hourly schedule. To ensure immediate recalculation after a new policy is created, a plug-in registered on the creation of the policy record can call the 'CalculateRollupField' message for the target entity's rollup field.
The Mass Calculate Rollup Field job is for a one-time or scheduled bulk recalculation and cannot be directly configured to trigger on individual record creation events.
Concept tested: Immediate Dataverse rollup field recalculation
Source: https://learn.microsoft.com/en-us/power-apps/maker/data-platform/define-rollup-fields#recalculate-values-manually-from-code
Community Discussion
No community discussion yet for this question.