Microsoft

MB-820 practice question 17

Microsoft Dynamics 365 Business Central Developer · free question 17 of 20

Question

A company uses Business Central. The company has branches in different cities. A worker reports that each time they generate a daily summary report, they get an error message that they do not have permissions. The code is shown in the exhibit. You need to resolve the issue. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.
AL lines 15-21: local procedure GetLogisticsCharge reads the Logistics Setup record and returns Logistics Charge

Explanation

Statement 1 (No): The procedure reads a record from Logistics Setup with Get, so it needs read permission on the table's data. Object type Table with execute permission does not grant reading of the records. Statement 2 (Yes): TableData with R gives the method read access to the Logistics Setup data, which is what the Get call needs. The Permissions scope applies the grant to the user's permissions, which is where this error comes from. Statement 3 (Yes): TableData with r grants the method read access to the data, matching the documented form of this attribute. The Both scope covers permissions and entitlements, and it is also the default. Statement 4 (No): This has the same flaw as Statement 1, because execute permission on the table object gives no read access to the records, whatever the case of the letter or the scope.

Practice the whole free set

Answer all 20 free MB-820 questions with instant feedback, or unlock all 116 questions with Learn and Exam modes.