Skip to content
KiweelyKiweelyKiweely

Running WQL Queries in a Personal Workday Developer Tenant (Ready-to-Run GMS Examples)

Practice Workday Query Language (WQL) in your free personal developer tenant using View WQL Query Results or the WQL REST API. These copy-paste queries run directly against Global Modern Services (GMS) data.

  • Checked against Workday on
  • Applies to Workday Personal Developer Tenants (WQL & GMS)
  • 3 min read
  • Published
  • By Kiweely
On this page

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

  1. Fastest (in-tenant UI): Search View WQL Query Results in Workday, paste a query, and click OK. Interactive results are capped at 500 rows.
  2. Inside Workday Extend: Add a WQL data source to a .pmd page or Orchestration step to populate grids, dropdowns, and dashboards.
  3. External REST API: Send GET /wql/v1/<tenant>/data?query=...&limit=100&offset=0 using 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:

sql
SELECT worker, businessTitle, primaryWorkEmail, supervisoryOrganization
FROM allActiveEmployees
LIMIT 25

Useful when picking a clean Employee → Manager pair for Start Proxy testing in GMS:

sql
SELECT worker, businessTitle, supervisoryOrganization, workersManagers
FROM allActiveEmployees
WHERE workersManagers IS NOT EMPTY
LIMIT 25

3. Headcount by location (GROUP BY aggregation)

Demonstrates WQL aggregation across GMS office locations:

sql
SELECT location, COUNT(worker) AS headcount
FROM allActiveEmployees
GROUP BY location
ORDER BY headcount DESC

4. Headcount by supervisory organization

Helps you locate populated teams inside GMS before building org-scoped approvals:

sql
SELECT supervisoryOrganization, COUNT(worker) AS teamSize
FROM allActiveEmployees
GROUP BY supervisoryOrganization
ORDER BY teamSize DESC
LIMIT 20

5. Filtering by hire date (WHERE with date literals)

Shows how Workday expects ISO YYYY-MM-DD date strings in WQL filters:

sql
SELECT worker, hireDate, businessTitle, location
FROM allActiveEmployees
WHERE hireDate >= '2020-01-01'
ORDER BY hireDate DESC
LIMIT 25

6. 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):

sql
SELECT workdayID, createdMoment, createdBy
FROM <appId>_<objectName>
ORDER BY createdMoment DESC
LIMIT 25

Discovering 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 WQL to see the exact FROM data source, SELECT aliases, and prompt syntax Workday uses.
  • Business Object Details: Search for any object (such as Worker or Supervisory 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

  1. Invalid data source or field alias: Confirm the alias in Business Object Details or Convert Report to WQL. WQL field names are case-sensitive camelCase.
  2. Empty result when proxied as a non-admin user: A query that returns rows for lmcneil can 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.
  3. Hitting the 500-row ceiling: View WQL Query Results stops 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.

Sources checked

Related guides

All guides

Let Workday check the work.

Kiweely writes WQL and builds orchestrations in your own tenant, and Workday, not Kiweely, says whether they passed.

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.