- (Topic 4)
You need to allow debugging in an extension to view the source code. In which file should you specify the value of the allowDebugging property?
Correct Answer:C
To enable debugging in an extension and allow the source code to be viewed, the allowDebugging property should be specified in the app.json file (C). The app.json file serves as the manifest for an AL project in Microsoft Dynamics 365 Business Central, defining the project's properties, dependencies, and features. By setting the allowDebugging property to true in this file, developers enable the debugging of the extension's source code, facilitating troubleshooting and development. This is essential for analyzing the behavior of the extension and identifying issues during the development process.
HOTSPOT - (Topic 1)
You need to provide the endpoint to the PMS provider for the RoomsAPI page.
How should you complete the API page endpoint? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point
Solution:
https://api.businesscentral.dynamics.com/v2.6/myTenant/myEnvironment/api/alpine/integration/rooms
Does this meet the goal?
Correct Answer:A
HOTSPOT - (Topic 1)
You need to create the configuration table and page for the non-conformity functionality.
Which table configurations should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point
Solution:
Design pattern for the setup table:
✑ The correct selection here is Adapter. The Adapter design pattern is commonly used when you need to handle integration points or create a setup table that acts as an intermediary for data manipulation, which fits the requirement for the configuration of the non-conformity functionality.
Data type of the primary key field:
✑ The correct data type is Code. In Business Central, when creating a table with a primary key field, the Code data type is typically used for fields such as document numbers, codes, and identifiers. For a setup table, a Code field is appropriate for keys like "No." series or setup identifiers.
Property required to prevent users from adding records:
✑ The correct property is InitValue. This property is used to set initial values for fields and can be configured in such a way that users are prevented from adding records directly, typically enforcing control over record creation and editing in configuration scenarios.
Does this meet the goal?
Correct Answer:A
HOTSPOT - (Topic 3)
You need to create the code related to the Subcontract Documents table to meet the requirement for the quality 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.
Solution:
Does this meet the goal?
Correct Answer:A
HOTSPOT - (Topic 4)
A company plans to import and export data with Business Central
You must configure an XMLport that provides the following implementation;
• Specifies import 01 export on the Request page at run time
* Formats the data in a non-fixed length CSV format You need to create the XMLport.
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.
Solution:
Direction: Both Format: VariableText
You are configuring an XMLport for Business Central with the following requirements:
✑ Specifies import or export on the Request page at runtime.
✑ Formats the data in a non-fixed length CSV format.
XMLport Configuration:
✑ Specifies import or export on the Request page at runtime.The Direction property must be set to Both.
✑ Formats the data in a non-fixed length CSV format.The Format property must be set to VariableText.
Does this meet the goal?
Correct Answer:A
HOTSPOT - (Topic 4)
You create a procedure to check if a purchase order has lines.
The procedure returns false for purchase order PO-00001 even though it has purchase lines.
You need to fix the code to get the correct 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.
Solution:
Add Clear(PurchaseLine); as a line before line 01 of the code: No Add PurchaseLine.SetFilter("Line No."; '>0') as a line after line 06: Yes Change the filter on line 06 from a "No." field to a "Document No." field: No Remove "not" in line 07: No
Add Clear(PurchaseLine); as a line before line 01 of the code.
✑ No
✑ You do not need to clear the PurchaseLine record before running the query, because the SetRange filters will take care of setting the correct context.
Add PurchaseLine.SetFilter("Line No."; '>0') as a line after line 06.
✑ Yes
✑ Adding a SetFilter on the "Line No." field ensures that you're checking for actual purchase lines greater than 0, which are valid lines. This would fix the issue where the check might return false even when lines exist.
Change the filter on line 06 from a "No." field to a "Document No." field.
✑ No
✑ The filter on the No. field is correct, as it's filtering based on the purchase order number. Changing this to Document No. is unnecessary.
Remove "not" in line 07.
✑ No
✑ The not in line 07 is necessary because IsEmpty() returns true when no lines are found. To correctly return a boolean indicating whether the purchase order has lines, you need to negate the result of IsEmpty().
Does this meet the goal?
Correct Answer:A