Query.addDataSource Method [AX 2012]

Adds a data source to the top level of the query.

public QueryBuildDataSource addDataSource(
    TableId table, 
   [str name, 
    UnionType unionType, 
    boolean emptyFieldList])

Run On

Called

Parameters

table
Type: TableId Extended Data Type
The table ID of the table assigned to the created data source.
name
Type: str
The name of the data source; optional.
unionType
Type: UnionType Enumeration

emptyFieldList
Type: boolean

Return Value

Type: QueryBuildDataSource Class
The created data source object.

A name argument can be specified for documentation purposes, and can be used to fetch the data source by using the dataSourceName method.

Community Additions

ADD
Show: