exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 2 question 22 discussion

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

DRAG DROP -
A company has a Common Data Service (CDS) environment.
All accounts in the system with a relationship type of Customer set must have an account number. A plug-in has been developed.
When a Customer is updated with a relationship type, the plug-in sets the account number if not provided by the user.
You need to register the plug-in.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: In the Plug-in Registration tool, select Register New Assembly.
You use the Plug-in Registration tool (PRT) to register your plug-in assemblies and steps.
Registering an assembly is the process of uploading the assembly to the Dataverse database.
Step 2: In the Plug-in Registration tool, Select Register New Step,..PreOperation
PreOperation occurs before the main system operation and within the database transaction.
If you want to change any values for an entity included in the message, you should do it here.
Step 3: In the Plug-in Registration tool, Select Register New Image, change the Image type to be a PreImage, and..
If your plug-in step is registered in the PreValidation or PreOperation stages of the execution pipeline, you could use the Organization service to retrieve the current value of the property, but this is not a good practice for performance. A better practice is to define a pre-entity image with your plug-in step registration.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/data-platform/register-plug-in

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
At09
Highly Voted 5 months, 1 week ago
Correct Answer
upvoted 8 times
...
YYCRMGuy
Most Recent 5 months, 3 weeks ago
The answer is correct. When editing the target in a plugin you should always use Pre Operation and the Pre-Image is to prevent changing the account number by the plugin logic that sets it when null, if the record previously had an account number generated.
upvoted 1 times
...
jkaur
7 months ago
answer is correct
upvoted 3 times
...
ziggy1117
7 months ago
Answer is correct, it is preoperation as it is writing into system
upvoted 1 times
...
700157a
7 months, 2 weeks ago
I would go as following. 1. Register New Assembly 2. Register New Step - PreValidation 3. Register New Image - PreImage
upvoted 4 times
...
700157a
7 months, 2 weeks ago
Why not use the Pre-Validation stage, there is nothing in the question that requires any transaction.
upvoted 1 times
TheRealTrompie99
1 month ago
we are not validating anything ,before writing to the database ,that's why
upvoted 1 times
...
asdadwww
4 months, 1 week ago
Pre-Validation is for validation check such as oob security role check(checking user permissions). If your code is not for logic checking for stopping the transaction if not passing the validation, then should put code to pre-operation step just for updating the context. As you have no control to the OOB security checking, you have no control the running sequence of the code in Pre-Validation stage. If your code run first, and the security checking not passed, then it results in a negative impact to the system performance.
upvoted 2 times
...
...
Emehoku
11 months ago
This question was on my 4/7/23 exam
upvoted 3 times
...
MKK99
1 year, 5 months ago
I think the 3rd step has to be post image, so that we get if user provided any value or not for customer number
upvoted 1 times
Flatternschuchtern
1 year, 5 months ago
There is no post image in the pre operation step. You get the new value from target.
upvoted 9 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