AifQueryBuilder.getQuery Method [AX 2012]

Retrieves the query object that is used by the Query Service to create the schema of the returned data set.

Syntax

public Query getQuery()

Run On

Called

Return Value

Type: Query Class
The Query object that is used by the Query Service to create the schema of the returned data set.

Remarks

The query object must be initialized by initialize method.

The returned query object is used by the Query Service to create the schema of the returned data set.

Every enabled data source is represented by a table in the returned data set. Disabled data sources are omitted.

Data source field lists and relations are honored.

The query object is used only to create the schema and does not have to be the same as the runtime query used by the query run.

Only data from the data sources that are included and enabled in both this query and the runtime query are sent back to the caller.

Data sources are identified by name, not index.

See Also

Reference

AifQueryBuilder Class