exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 1 question 28 discussion

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

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Juan0414
1 month, 3 weeks ago
Selected Answer: B
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/register-plug-in#define-entity-images
upvoted 1 times
...
AkShres
7 months, 2 weeks ago
To access the record columns before the operation starts and compare them to post-update values, you should: 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. Registering a pre-image allows you to capture the state of the record before the update operation. This way, you can compare the pre-update values (from the pre-image) with the post-update values (available in the InputParameters collection) within your plug-in logic1.
upvoted 3 times
...
Tarnk
8 months ago
Selected Answer: B
A pre-image is a snapshot of the entity's data before the update operation occurs. By registering a pre-image, the plug-in can access the values of the entity's columns before the update. This allows for comparison with the post-update values in the Target entity. This is the correct approach to accessing pre-update values.
upvoted 1 times
...
Aazzi11
9 months, 3 weeks ago
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.
upvoted 1 times
...
pey
11 months, 4 weeks ago
Selected Answer: 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.
upvoted 1 times
...
4e8b388
1 year ago
Selected Answer: B
B is correct
upvoted 2 times
...
MohitRao
1 year ago
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
upvoted 1 times
...
iraelena
1 year, 2 months ago
Selected Answer: 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."
upvoted 4 times
...
SidAsh
1 year, 6 months ago
Selected Answer: B
Chatgpt Answer is also B
upvoted 4 times
...
At09
1 year, 7 months ago
ANSWER IS B
upvoted 3 times
...
MeTToW
1 year, 7 months ago
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.
upvoted 2 times
...
lknr
1 year, 7 months ago
Selected Answer: B
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/register-plug-in#define-entity-images
upvoted 1 times
...
dj74
1 year, 7 months ago
Selected Answer: B
Correction I meant b
upvoted 2 times
...
dj74
1 year, 7 months ago
Selected Answer: C
Pre entitiy images have the value before the update. Then you can compare the values before and after the update happened
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago