You can run Workday Query Language (WQL) immediately inside a personal developer tenant using the View WQL Query Results task—no API client setup required. Because your tenant is pre-loaded with Global Modern Services (GMS) data, the queries below return real rows on day one so you can practice filtering, joins, aggregations, and Extend app data sources.
Where to Run WQL in Your Personal Tenant
- Fastest (in-tenant UI): Search View WQL Query Results in Workday, paste a query, and click OK. Interactive results are capped at 500 rows.
- Inside Workday Extend: Add a WQL data source to a
.pmdpage or Orchestration step to populate grids, dropdowns, and dashboards. - External REST API: Send
GET /wql/v1/<tenant>/data?query=...&limit=100&offset=0using either the Developer Site API Explorer or an OAuth API Client.
Six Copy-Paste WQL Queries That Work in GMS
1. Basic active worker directory
Pulls active workers with their business title, primary work email, and supervisory organization:
SELECT worker, businessTitle, primaryWorkEmail, supervisoryOrganization
FROM allActiveEmployees
LIMIT 252. Workers with their direct manager (related business object lookup)
Useful when picking a clean Employee → Manager pair for Start Proxy testing in GMS:
SELECT worker, businessTitle, supervisoryOrganization, workersManagers
FROM allActiveEmployees
WHERE workersManagers IS NOT EMPTY
LIMIT 253. Headcount by location (GROUP BY aggregation)
Demonstrates WQL aggregation across GMS office locations:
SELECT location, COUNT(worker) AS headcount
FROM allActiveEmployees
GROUP BY location
ORDER BY headcount DESC4. Headcount by supervisory organization
Helps you locate populated teams inside GMS before building org-scoped approvals:
SELECT supervisoryOrganization, COUNT(worker) AS teamSize
FROM allActiveEmployees
GROUP BY supervisoryOrganization
ORDER BY teamSize DESC
LIMIT 205. Filtering by hire date (WHERE with date literals)
Shows how Workday expects ISO YYYY-MM-DD date strings in WQL filters:
SELECT worker, hireDate, businessTitle, location
FROM allActiveEmployees
WHERE hireDate >= '2020-01-01'
ORDER BY hireDate DESC
LIMIT 256. Querying a Custom Business Object (CBO) you built in Extend
Once you deploy an Extend app with a Custom Business Object, WQL queries it by its Extend data source alias (replace <appId>_<objectName> with your own):
SELECT workdayID, createdMoment, createdBy
FROM <appId>_<objectName>
ORDER BY createdMoment DESC
LIMIT 25Discovering Exact Field Aliases Without Guessing
WQL rejects invented field names with immediate validation errors. Two built-in Workday tasks save hours of trial and error:
- Convert Report to WQL: Build a quick Custom Report on GMS, add the columns and filters you want, and run
Convert Report to WQLto see the exactFROMdata source,SELECTaliases, and prompt syntax Workday uses. - Business Object Details: Search for any object (such as
WorkerorSupervisory Organization) and check the Fields tab to verify whether a field is indexed, multi-instance, or restricted by domain security.
Three Common WQL Errors on a Personal Tenant
- Invalid data source or field alias: Confirm the alias in
Business Object DetailsorConvert Report to WQL. WQL field names are case-sensitive camelCase. - Empty result when proxied as a non-admin user: A query that returns rows for
lmcneilcan return zero rows for an Employee as Self if that persona lacks domain access to the underlying fields. Always test Extend WQL queries while proxied as your target end user. - Hitting the 500-row ceiling:
View WQL Query Resultsstops at 500 rows. For full extracts, paginate over the WQL REST API.
Writing and Validating WQL Faster
Vine Free is free for your Workday personal developer account and its tenant. Any other tenant needs Vine Personal at $99 a month for one person, or a Vine Team seat at $149 a month.
With Kiweely Vine, you can ask for a report or Extend data source in plain English against your personal developer tenant—Vine inspects real GMS field aliases, runs the WQL against your tenant, and fixes alias or security mismatches automatically.
Frequently asked questions
How do I run a WQL query inside a personal Workday developer tenant?
Sign in to your personal tenant (for example as lmcneil), search for the task View WQL Query Results, paste your query, and run it. For more than 500 rows or programmatic access, call the WQL REST API with offset and limit.
Why does View WQL Query Results stop at 500 rows?
Workday's interactive View WQL Query Results screen caps output at 500 rows. To retrieve larger result sets, paginate through the WQL REST API using offset and limit parameters.
How do I find valid WQL data source names and field aliases in GMS?
Run the Workday task Business Object Details on any business object (such as Worker) or use Convert Report to WQL on an existing Custom Report to see the exact data source and field aliases your tenant exposes.