Workday Query Language (WQL) does not support SELECT * or any column wildcard. Every WQL query must list each field alias explicitly in the SELECT clause, because Workday data sources expose hundreds of delivered and calculated fields whose availability depends on your tenant configuration and security permissions.
If you submit SELECT * FROM allWorkers to the WQL REST API, Workday rejects the query with a syntax error before execution. To pull columns safely, inspect the data source metadata first and select only the aliases your integration or report needs.
Why WQL blocks SELECT *
A Workday business object such as Worker can carry thousands of delivered fields, related business objects, and tenant-specific calculated fields. Evaluating every field on every row would trigger expensive runtime lookups and cross multiple security domains at once.
Requiring explicit field names keeps query latency predictable and ensures each call touches only the security domains granted to the calling user or Integration System User (ISU).
How to find every valid field on a WQL data source
Use the WQL REST API metadata endpoints under the same user or ISU credentials that will run the query. Workday returns only the data sources and fields that account is allowed to read.
- List the data sources visible to your account:
GET /ccx/api/wql/v1/{tenant}/dataSources- Locate the
id(WID) for your target data source alias, such asallWorkersorworkersForHCMReporting. - Fetch the valid field aliases and related business objects for that data source:
GET /ccx/api/wql/v1/{tenant}/dataSources/{ID}/fields- Copy the exact field alias names into your
SELECTclause. For fields on a related business object, wrap the nested field in curly braces:
SELECT worker, fullName, location{locationName}
FROM allWorkers
LIMIT 100SELECT *
FROM allWorkersWorking with aliases, filters, and large pulls
Once you have the field list from GET /dataSources/{ID}/fields, keep three WQL rules in mind:
| Need | WQL syntax | Notes |
|---|---|---|
| NeedRename an output column | WQL syntaxfullName AS workerName |
NotesColumn aliases must follow WQL identifier rules (letters, numbers, underscores; no spaces). |
| NeedPull related object fields | WQL syntaxlocation{locationName} |
NotesUse curly braces on single- or multi-instance related objects rather than SQL JOIN syntax. |
| NeedPull more than one page | WQL syntaxLIMIT and OFFSET |
NotesWQL paginates results; see pulling more than 500 rows with WQL. |
| NeedDiagnose HTTP 400 errors | WQL syntaxPaste the JSON response | NotesUse the Workday WQL error lookup to decode field and prompt errors. |
Writing WQL without guessing field aliases
Copying field names from another tenant or an old script is the main cause of WQL invalid field errors, because custom fields and security differ by tenant. Kiweely Vine reads your connected tenant’s live WQL data sources and field metadata before writing the query, runs it under your own Workday permissions, and shows the returned rows. Kiweely Vine is available by arrangement. OnoeX delivers Workday projects with it, and any other consulting firm can ask to use it.