Check object existence?

absolutelyfreewebabsolutelyfreeweb Member Posts: 104
Hi,

I would like to check whether a table, form, report, or codeunit exists, from within the c/side code.

Can I do this?

e.g. equalent to if exists(select from sysobjects where id=....)

Comments

  • rmpatel22rmpatel22 Member Posts: 80
    You can define one record variable for Table 2000000058 (Name: AllObjWithCaption), and check it. Navision is saving object details in this table so you can filter object type, object number and check object is present in database or not.

    Regards,
    Rakesh
    Rakesh Patel
    Navision Developer
  • kinekine Member Posts: 12,562
    Or you can directly check the Object table... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.