Microsoft Power Platform Developer — Question 68
A company develops a new Microsoft Dataverse plug-in that manages the Update message of an entity.
The plug-in logic requires access to the record columns before the operation starts and must compare the columns to post-update values.
You need to modify the design of the solution to access the information.
What should you do?
Answer options
- A. Add the code to the plug-in to read the record from the InputParameters collection.
- B. Register a pre-image by using the Plug-in Registration Tool. Add the code to the plug-in to read the image from the PreEntityImages collection.
- C. Register a post-image by using the Plug-in Registration Tool. Add the code to the plug-in to read the image from the PostEntityImages collection.
- D. Add the code to the plug-in to query the data from Dataverse by using the API call based on the record ID.
Correct answer: B
Explanation
The correct answer is B because registering a pre-image allows the plug-in to access the state of the entity before the update occurs, which is essential for comparison with post-update values. Options A and D do not provide access to the necessary pre-update data, while option C accesses post-update data, which does not fulfill the requirement.