Exam PL-400 All QuestionsBrowse all questions from this exam
Question 28

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?

    Correct Answer: B

    To manage the Update message of an entity and compare the record columns before and after the operation, you should register a pre-image using the Plug-in Registration Tool. This allows the plug-in to capture and access the state of the entity before the update operation starts. The pre-image will have the initial values, which the plug-in can then compare to the post-update values. Accessing this 'snapshot' from the PreEntityImages collection ensures efficient and accurate comparison without additional queries.

Discussion
iraelenaOption: B

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/register-plug-in#define-entity-images "If your plug-in step is registered in the PreValidation or PreOperation stages of the execution pipeline, you could use the IOrganizationService instance to retrieve the current value of the property, but this isn't a good practice for performance. A better practice is to define a pre-entity image with your plug-in step registration. This will capture a 'snapshot' of the table with the fields you're interested in as they existed before the operation that you can use to compare with the changed values."

SidAshOption: B

Chatgpt Answer is also B

At09Option: B

ANSWER IS B

dj74Option: C

Pre entitiy images have the value before the update. Then you can compare the values before and after the update happened

4e8b388Option: B

B is correct

MeTToWOption: B

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/register-plug-in#define-entity-images For an Update operation that is registered in the PostOperation stage you can have both a Pre Image AND a Post Image. So the answer seems Correct.

dj74Option: B

Correction I meant b

Aazzi11Option: B

B. For comparison use Pre-image and for showing updated record use post-image here in question they said must compare so it should be pre-image.

peyOption: C

Using a pre-image alone would not fulfill the requirement, as it only provides the state before the update, not after. With a post-image, you capture the state of the entity after the operation has occurred, which includes the updated values of the record's columns. This allows us to compare the columns before and after the update, fulfilling the requirement of the scenario.

MohitRaoOption: C

The plug-in logic requires access to the record columns before the operation starts and must compare the columns to post-update values. see the question -if postEntityImage contains both images before and after update then C is the answer

lknrOption: B

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/register-plug-in#define-entity-images