Skip to content
KiweelyKiweelyKiweely

Does Workday WQL Support SELECT *? How to List Data Source Fields

Workday Query Language (WQL) does not support SELECT *. You must name each field alias explicitly in your SELECT clause and discover valid fields through the WQL REST metadata endpoints.

  • Checked against Workday on
  • Applies to Workday Extend
  • 2 min read
  • Published
  • By Kiweely
On this page

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.

  1. List the data sources visible to your account:
http
GET /ccx/api/wql/v1/{tenant}/dataSources
  1. Locate the id (WID) for your target data source alias, such as allWorkers or workersForHCMReporting.
  2. Fetch the valid field aliases and related business objects for that data source:
http
GET /ccx/api/wql/v1/{tenant}/dataSources/{ID}/fields
  1. Copy the exact field alias names into your SELECT clause. For fields on a related business object, wrap the nested field in curly braces:
Works
SELECT worker, fullName, location{locationName}
FROM allWorkers
LIMIT 100
Fails
SELECT *
FROM allWorkers

Working 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.

Sources checked

Run WQL against your real tenant.

Kiweely Vine inspects your tenant's data sources and fields, runs the query under your Workday security, and verifies the rows returned.

Get the next guide in your inbox.

One email a month with new guides and one Extend tip. Nothing else.

We’ll email you once to confirm. Unsubscribe in one click from any issue.

Protected by reCAPTCHA. Google’s privacy policy and terms apply.