ExamGecko
Home Home / Microsoft / MB-820

Microsoft MB-820 Practice Test - Questions Answers, Page 10

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

A developer creates a profile for part-time shop supervisors and adds customizations.

You plan to add new requirements to the profile.

You need to analyze the code to understand the profile and make sure there are no errors.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.


Question 91
Correct answer: Question 91

DRAG DROP

You develop a table named Contoso Setup and a page.

You plan to use No. Series to automatically assign a unique number to data entries. You set up No. Series on the Vendor Nos. field of the Contoso Setup table.

You need to apply the No. Series Design Pattern to the trigger Onlnsert().

Which four code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.


Question 92
Correct answer: Question 92

HOTSPOT

You need to write an Upgrade codeunit and use the DataTransfer object to handle the data upgrade.

Which solution should you use for each requirement? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 93
Correct answer: Question 93

DRAG DROP

A company uses four objects in development in Business Central.

The company plans to make changes to the objects.

You need to identify the application layer for each object in Visual Studio Code.

Which objects ate available in each application layer? To answer, move the appropriate application layer to the correct objects You may use each application layer once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.


Question 94
Correct answer: Question 94

You have an XMLport that exports items from a database to an XML file.

You need to change the export format from XML to CSV.

What should you do?

A.

Change the Direction property to Both

A.

Change the Direction property to Both

Answers
B.

Change the FormatEvaluate property to Legacy.

B.

Change the FormatEvaluate property to Legacy.

Answers
C.

Change the XmlVeisionNo property to 1.1.

C.

Change the XmlVeisionNo property to 1.1.

Answers
D.

Fill the FileName property with the Items.csv value.

D.

Fill the FileName property with the Items.csv value.

Answers
E.

Change the Format property to VariableText.

E.

Change the Format property to VariableText.

Answers
Suggested answer: E

Explanation:

XMLport Overview In Microsoft Dynamics 365 Business Central, XMLports are used for importing and exporting data in XML, CSV, or other text formats. By default, XMLports are designed to work with XML data, but they can also handle delimited text formats like CSV (Comma-Separated Values).

Requirement Clarification The requirement is to change the export format from XML to CSV. CSV is a text-based format, not an XML format. To accommodate this, you need to change how the XMLport handles data during export.

Properties of XMLport

The Format property in XMLports controls whether the output format is XML or a text-based format such as CSV.

The VariableText option of the Format property specifies that the data should be exported in a variable text format, like CSV.

The XMLports default to an XML format, but by setting the Format property to VariableText, you can change the export to CSV format or another text-delimited format.

Explanation of Correct Answer (E) To switch from XML to CSV export:

You need to change the Format property of the XMLport to VariableText.

The VariableText option allows for the export of data in a non-XML format, which is precisely what CSV represents (a comma-delimited text file).

Why Other Options Are Incorrect

Option A (Change the Direction property to Both): The Direction property controls whether the XMLport is used for Import, Export, or Both (import and export), but it does not affect the file format (XML vs. CSV). Hence, this is irrelevant to the file format change.

Option B (Change the FormatEvaluate property to Legacy): The FormatEvaluate property is not related to changing the export format. It deals with the evaluation of the data format during the processing but doesn't change the format type (XML or CSV).

Option C (Change the XmlVeisionNo property to 1.1): The XmlVersionNo property defines the XML version used for the export (such as 1.0 or 1.1). This only applies to XML exports and does not change the format to CSV.

Option D (Fill the FileName property with Items.csv): While this option would specify the name of the file being exported (i.e., 'Items.csv'), it doesn't control the format of the export itself. The actual format change is controlled by the Format property.

Developer Reference from Microsoft Documentation According to the official Microsoft documentation for XMLports in Business Central, the Format property is critical for determining how data is structured for export. To change the file format from XML to CSV, developers need to set the Format property to VariableText. This allows for export in a text-delimited format, which is ideal for CSV.

XMLport Properties - Format Property

How to: Export Data in Text Format Using XMLports

HOTSPOT

A company uses Business Central. The company is generating a detailed custom report.

A user observes that the generated report dataset contains more Delivery Line records than expected for one specific Delivery Header.

You need to generate a report that contains the accurate number of records.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.


Question 96
Correct answer: Question 96

A company plans to change a field on the Resource Card page in a Base Application.

You need to hide the field 'Unit Price' from the Resource Card page.

Which code snippet should you use?

A.


A.


Answers
B.


B.


Answers
C.


C.


Answers
D.


D.


Answers
Suggested answer: D

Explanation:

To hide the field 'Unit Price' from the Resource Card page in Microsoft Dynamics 365 Business Central, you need to modify the visibility property of the field using the modify keyword, which allows you to change the properties of an existing field on a page.

Explanation=

modify('Unit Price') is the correct way to target an existing field on a page (like the Resource Card page).

The line Visible = false; makes the field invisible on the page.

Here's a breakdown of why each option is right or wrong:

Option A:

Uses addlast('Unit Price'), which is incorrect because you are not adding a new field; you're modifying an existing one. Also, Visible = false is correct for hiding a field, but the wrong method (addlast) is used.

Option B:

Uses modify('Unit Price') with Enabled = false;. This would disable the field (make it non-editable), not hide it. The field would still be visible, so this does not meet the requirement.

Option C:

Uses addlast('Unit Price'), which is incorrect, and Enabled = false;, which would disable the field, not hide it.

Option D:

modify('Unit Price') { Visible = false; } is the correct syntax for hiding the field on the page.

Correct Code Snippet:

modify('Unit Price')

{

Visible = false;

}

This hides the 'Unit Price' field from the Resource Card page.

You are customizing Business Central by using Visual Studio Code. You create a project that will extend Business Central. The AL extension contains JSON files, which are automatically generated and are used to store configuration data

For testing purposes, you plan to add the following changes to the files:

* Specify that page 21 must be opened after publishing.

* Enable debugging

* Disable the capability to download the source code

You need to add the configurations to the JSON files.

Which two configurations should you add? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Set 'startupObjectld': 27 on launchjson.

A.

Set 'startupObjectld': 27 on launchjson.

Answers
B.

In the 'resourceExposurePolicy' tag, set 'at low Debugging'. true and allowDownloadingSource': false on launchjson.

B.

In the 'resourceExposurePolicy' tag, set 'at low Debugging'. true and allowDownloadingSource': false on launchjson.

Answers
C.

Set 'start upObjectld': 27 on appjson.

C.

Set 'start upObjectld': 27 on appjson.

Answers
D.

In the 'resourceExposurePolicy' tag, set 'allowDebugging': true and 'allowDown loading Source': true on appjson.

D.

In the 'resourceExposurePolicy' tag, set 'allowDebugging': true and 'allowDown loading Source': true on appjson.

Answers
E.

In the 'resourceExposurePolicy' tag, set 'allowDebugging': true and 'allowDownloadingSource': false on appjson.

E.

In the 'resourceExposurePolicy' tag, set 'allowDebugging': true and 'allowDownloadingSource': false on appjson.

Answers
Suggested answer: C, E

Explanation:

You are customizing Business Central using Visual Studio Code and JSON files for configuration.

You plan to:

Open page 21 after publishing.

Enable debugging.

Disable the capability to download the source code.

Which configurations should you add?

The options involve two primary JSON files: launch.json and app.json, and configuration tags like startupObjectId and resourceExposurePolicy.

Total 98 questions
Go to page: of 10