On Dynamics AX 2009, there are situations which a table is declared as virtual table.
This is done by the menu : Administration -> Setup -> Virtual companies account.
On table collection, I declare a table collection which the table is within it.
I want to identify by X++ code, whether the table is in the collection.
Every table has a DataAreaId field, which indicates the virtual company ID. You wouldn't even have to retrieve a record, just declare the table and check its dataareaid at runtime.
Dynamics AX MVP | My Blog | Sikich | Twitter @JorisdG