AL icon indicating copy to clipboard operation
AL copied to clipboard

System tables are no longer accessible

Open naveksa opened this issue 8 years ago • 3 comments

Since System tables are no longer accessible, what are the alternatives? How to create a Profile for Role Center programmatically now?

NAV system tables not recognized in VSC-AL:[/b] “The type or method 'XXX' cannot be used for 'Extension' development” Where ‘XXX’ is defined as a Record var pointing to a system table, e.g. Table 2000000072 Profile T. 2000000022 File T. 2000000112 Server Instance T. 2000000076 Web Service

naveksa avatar Jul 02 '18 07:07 naveksa

Regarding to profile: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-profile-object

dNsl9r avatar Jul 02 '18 08:07 dNsl9r

Hi @naveksa and thanks @dNsl9r. Regarding other system tables, we have restricted access to only those system tables which could compromise safety when running a cloud multi-tenant environment. This includes Server Instance, File and others.

If you are developing an on-premise solution though, you can switch to "target": "Internal" in the app.json file and you will have access to all system tables as before. However, note that you will not be able to publish such extensions to the cloud.

defr0std avatar Jul 02 '18 11:07 defr0std

P.S. And if you believe that a certain system table has been incorrectly categorized as 'unsafe', just let us know which table it is and what is your scenario and we will have a look.

defr0std avatar Jul 02 '18 11:07 defr0std