SqlDataDictionary.tableEmpty Method [AX 2012]

Returns true if table is not empty; otherwise false.

public boolean tableEmpty(
    TableId tableId, 
   [str company, 
    boolean not_this_company])

Run On

Server

Parameters

tableId
Type: TableId Extended Data Type
company
Type: str
The name of the company that data should be checked; optional. By default, ALL.
not_this_company
Type: boolean
If true exludes records that belongs to the company from the query; optional. By default, false.

Return Value

Type: boolean
true if the table empty; otherwise, false.

Community Additions

ADD
Show: