MB-820 Dumps

MB-820 Free Practice Test

Microsoft MB-820: Microsoft Dynamics 365 Business Central Developer

QUESTION 6

HOTSPOT - (Topic 1)
You need to create the Install codeunit that is requited in the extension used for installing or updating the Housekeeping app.
Which data type or declaration should you use? To answer, select the appropriate options in the answer area.
NOTE; Each correct selection is worth one point.
MB-820 dumps exhibit
Solution:
For the Install codeunit required for the extension used for installing or updating the Housekeeping app, you should use the following data type and declaration:
✑ Data type for information: ModuleInfo
✑ Start of the declaration of the method or procedure to perform the tasks: local procedure
In AL language, which is used for developing extensions in Business Central, an Install codeunit is a special type of codeunit that is used to handle installation or upgrade logic for an extension.
✑ ModuleInfo is a data type that contains information about the current extension,
such as its version. It is typically used within the OnInstallAppPerCompany or OnUpgradePerCompany triggers of an Install codeunit to determine if the app is being installed for the first time or upgraded.
✑ A local procedure within an Install codeunit is a method that is only accessible
within the codeunit itself. It is not visible to other objects or extensions. This is suitable for tasks that are internal to the installation process and should not be exposed globally.
These selections align with the requirements of handling installation and update procedures in a controlled and encapsulated manner within Business Central extensions.

Does this meet the goal?

Correct Answer: A

QUESTION 7

HOTSPOT - (Topic 4)
You plan to create a table to hold client data.
You have the following data integrity requirements:
• Lookups into other records must be established.
• Validate if a record exists in a destination record.
You need to select the table field property to use for each requirement.
Which table field property should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
MB-820 dumps exhibit
Solution:
For the data integrity requirements, the table field properties to use are:
✑ To establish lookups into other records, use the TableRelation property.
✑ To validate if a record exists in a destination record, use the ValidateTableRelation property.
In Business Central, when creating tables to hold data, maintaining data integrity is crucial:
✑ TableRelation Property:This property is used to create a relationship between the field in one table and a field in another table, which is typically used for lookups. When you set the TableRelation property on a field, it allows users to select from a list of values that exist in the related table.
✑ ValidateTableRelation Property:This property is used to ensure that the value entered in a field matches one of the values in a related table. If a user tries to enter a value that doesn't exist in the related table, an error will occur.

Does this meet the goal?

Correct Answer: A

QUESTION 8

- (Topic 4)
You must simulate the user interaction of selecting a posting option. The options must include:
• Ship
• Invoice
• Ship & Invoice
You need to create a test codeunit to run the test. What should you use?

Correct Answer: B
✑ Handler methods are used in tests to simulate user interactions, such as responding to dialogs, confirmation messages, or option selections. Since you need to simulate the user interaction of selecting a posting option (Ship, Invoice, Ship & Invoice), a Handler method would be the appropriate choice for capturing this kind of user input.
✑ Normal attribute and Test attribute are used for marking methods for test execution, but they do not simulate user interaction, making Handler method the correct answer.
For more details, see the Microsoft Docs on Test Codeunits and Handler Methods.

QUESTION 9

HOTSPOT - (Topic 3)
You need to create the Fabrikam Vendor API for the accounting department.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
MB-820 dumps exhibit
Solution:
MB-820 dumps exhibit

Does this meet the goal?

Correct Answer: A

QUESTION 10

HOTSPOT - (Topic 3)
You need to modify the API Customer list code to obtain the required result.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
MB-820 dumps exhibit
Solution:
MB-820 dumps exhibit

Does this meet the goal?

Correct Answer: A