PL-400 · Question #314
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…
The correct answer is B. Create a plug-in that uses the update method for the rollup field. Configure a step on the Create. To ensure Dataverse rollup fields immediately recalculate after a related record is created, a plug-in should be used to trigger an update on the parent record.
Question
Options
- ACreate new calculated fields on the customer entity for insurance exposure and risk. Configure
- BCreate a plug-in that uses the update method for the rollup field. Configure a step on the Create
- CCreate new fields on the customer entity for insurance exposure and risk. Write a plug-in that is
- DCreate new fields on the customer entity for insurance exposure and risk. Write a workflow
How the community answered
(28 responses)- A18% (5)
- B71% (20)
- C7% (2)
- D4% (1)
Why each option
To ensure Dataverse rollup fields immediately recalculate after a related record is created, a plug-in should be used to trigger an update on the parent record.
Calculated fields are derived from formulas on the same record or related records, but they do not actively force the recalculation of existing rollup fields when new child records are added.
A plug-in registered on the `Create` event of the policy entity can programmatically trigger an `Update` operation on the parent customer entity; this action forces the Dataverse rollup field to re-evaluate and update its value immediately.
While a plug-in is the correct approach, this option is too vague and does not specify the critical action of using the `update method for the rollup field` or its parent record.
Standard workflows do not provide the direct capability to force an immediate recalculation of rollup fields in response to a child record's creation; their capabilities are generally declarative or use limited actions.
Concept tested: Dataverse rollup field immediate recalculation
Source: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/create-update-delete-entities-using-sdk-for-net#trigger-recalculation-of-rollup-fields
Community Discussion
No community discussion yet for this question.