exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 2 question 28 discussion

Actual exam question from Microsoft's PL-400
Question #: 28
Topic #: 2
[All PL-400 Questions]

A company uses Common Data Service 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 insurance policies are written.
You need to recalculate the value of the rollup fields immediately after a policy is created.
What should you do?

  • A. Create new fields on the customer entity for insurance exposure and risk. Write a workflow process that is triggered when a new policy record is created to calculate the sum of values from policy records.
  • B. Update the Mass Calculate Rollup Field job to trigger when a new policy record is created.
  • C. Change the frequency of the Calculate Rollup Field recurring job from every hour to every five minutes.
  • D. Create a plug-in that uses the CalculateRollupFieldRequest method for the rollup field. Configure a step on the Create event for the policy entity for this plug-in.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
In case you want to calculate Rollup field immediately whenever child record gets created, updated or deleted, you can write custom C# plugin or custom workflow activity and use SDK message ג€CalculateRollupFieldRequestג€.
Incorrect:
Not B: Mass Calculate Rollup Field ג€" This job is created per Rollup field and runs when you create or update Rollup field. By default, job runs in 12 hours after you create or update Rollup field. You can adjust start time of this job to make sure job runs during non-operational hours
Reference:
https://sachinbansal.blog/2018/05/07/dynamics-365-rollup-fields-important-points/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
HURRYUPGO
Highly Voted 1 year, 3 months ago
D. Create a plug-in that uses the CalculateRollupFieldRequest method for the rollup field. Configure a step on the Create event for the policy entity for this plug-in. Rollup fields in Common Data Service are used to calculate aggregate values like the sum or count of related records. They are calculated asynchronously through the Calculate Rollup Field job. However, in this scenario, the users require the rollup fields to be updated immediately after a policy is created. To achieve this requirement, a plugin that uses the CalculateRollupFieldRequest method for the rollup field can be created. This plugin can be configured to trigger on the Create event for the policy entity, and it will update the rollup fields immediately after a policy is created.
upvoted 13 times
...
NyarukouSAMA
Most Recent 8 months, 2 weeks ago
Selected Answer: D
Sounds logical, if you need it immediately then you need the plugin.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...