Business Object Query Components

A Business Object Query (BQL) includes components that define the source business objects, intermediate query logic, output, and optional runtime parameters.

Business Object Query Components

Component Required Description
viewQueries Required when querying business objects Defines aliases for business objects and views, and fieldAliases for business object fields used in the SELECT statement. The view property is optional. Omit it to use the default view.
namedSelects Required when intermediate logic is needed Defines named common table expressions. Use named selects for intermediate query steps, such as joins, filtering, grouping, or calculated fields.
select Required Defines the final extraction shape, including output columns, aliases, ordering, and records returned for downstream processing.
parameters Optional Defines bind parameters for stored queries. Specify the type, required value, and default value, as applicable. Callers pass values as URL parameters.
return Optional Defines an ordered array that maps SELECT columns to JSON response names. Each stored-query entry also requires a ref or type. Supported data types are string, int32, int64, float, double, big-decimal, date, date-time, long-text, and binary.