HOTSPOT – You need to create a chain of command method for inserting the data on the table for the new fields. How should you complete the code? To answer, select the appropriate configuration in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

QuestionsCategory: MB-500HOTSPOT – You need to create a chain of command method for inserting the data on the table for the new fields. How should you complete the code? To answer, select the appropriate configuration in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
Admin Staff asked 7 months ago
HOTSPOT -
You need to create a chain of command method for inserting the data on the table for the new fields.
How should you complete the code? To answer, select the appropriate configuration in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
 Image
















 

Suggested Answer: 
    Correct Answer Image

Box 1: [ExtensionOf(ClassStr(WHSTmpStatusChange))]
An extension class must belong to a package that references the model where the augmented class is defined.
Box 2: final -
The keyword 'final' needs to be used in the class definition line.
Example:
[ExtensionOf(classStr(BusinessLogic1))]
final class BusinessLogic1_Extension
Box 3: next insert();
Wrapper methods must always call next
Wrapper methods in an extension class must always call next, so that the next method in the chain and, finally, the original implementation are always called. This restriction helps guarantee that every method in the chain contributes to the result.
Box 4: InventSum.InventBatchID = thisNewInventBatchID;
Use element.FormToExtendVariable to access form's variables and datasources
Reference:
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/method-wrapping-coc

This question is in MB-500 Microsoft Dynamics 365 Finance and Operations Apps Developer Exam
For getting Microsoft Certified: Dynamics 365 Finance and Operations Apps Developer Associate Certificate




Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Microsoft. 
The website does not contain actual questions and answers from Microsoft's Certification Exams.
Trademarks, certification & product names are used for reference only and belong to Microsoft.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.