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.
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.