Query.dataSourceTable Method [AX 2012]

Returns the data source that has the specified table assigned to it.

public QueryBuildDataSource dataSourceTable(TableId table, [int occurrence])

Run On

Called

Parameters

table
Type: TableId Extended Data Type
The table ID matching the requested data source.
occurrence
Type: int
An integer that is used when more than one data source uses the specified table ID; optional. The default argument is 1, specifying the first (and typically only) instance.

Return Value

Type: QueryBuildDataSource Class
The data source that has the specified table assigned to it.

The data source can also be retrieved by calling the dataSourceNo method or dataSourceName method.

Community Additions

ADD
Show: