Share via


SysQuery::findOrCreateDataSource Method [AX 2012]

Finds or creates a QueryBuildDataSource from the specified parameters.

Syntax

client server public static QueryBuildDataSource findOrCreateDataSource(
    Query _query, 
    TableId _tableId, 
   [TableId _parentTableId])

Run On

Called

Parameters

  • _query
    Type: Query Class
    The query in which to find or create the QueryBuildDataSource object.
  • _parentTableId
    Type: TableId Extended Data Type
    The ID of the table under which to create the QueryBuildDataSource object if it is not found.

Return Value

Type: QueryBuildDataSource Class
The found or newly created QueryBuildDataSource object.

See Also

Reference

SysQuery Class