Options

Workaround to use System tables in AL extensions

adasadas Member Posts: 3
I have a c/al object using Object table. Given, System and Virtual tables cannot be extended, how can I accommodate this when converted to AL?

Comments

  • Options
    TallyHoTallyHo Member Posts: 383
    You cannot add fields to the table using a table extension.
    But you can use the object table in AL, just as you could in C/AL.
  • Options
    SanderDkSanderDk Member Posts: 497
    edited 2019-07-03
    That depending on what you use Object for.
    What kind of info are you looking for?
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • Options
    adasadas Member Posts: 3
    I have a field in a table that is referring to Object table using TableRelation (Object.ID WHERE (Type=CONST(Table)) . The solution is not compiling and error is showing in TableRelation property. Error is - 'The type or method Object cannot be used for Extension development'
  • Options
    adasadas Member Posts: 3
    It seems that we can use AllObj table instead of Object table. Some system/virtual tables are not usable for extension development. However, AllObj is allowed. this link can help.

    https://github.com/Microsoft/AL/issues/453
Sign In or Register to comment.