---
title: "Workday WQL Examples for Personal Developer Tenants"
description: "Copy-paste Workday Query Language (WQL) queries tested against GMS sample data in a personal developer tenant, plus how to run them in the UI and REST API."
url: https://kiweely.com/guides/workday-wql-queries-personal-developer-tenant-gms-examples
---

# 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 November 24
-   Applies to **Workday Personal Developer Tenants (WQL & GMS)**
-   3 min read
-   Published November 24
-   By Kiweely

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
```

### 2\. Workers with their direct manager (related business object lookup)

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](https://kiweely.com/guides/wql-more-than-500-rows).

## 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](https://kiweely.com/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

-   [Workday Query Language (concept, enabling WQL, security)](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/aht1611188422513.html)
-   [View WQL Query Results](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/dsv1647475571660.html)
-   [WQL reference: SELECT](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/wql-reference/wif1611189270836.html)
-   [WQL reference: FROM](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/wql-reference/kba1611189724822.html)
-   [WQL reference: WHERE](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/wql-reference/fsf1611267464081.html)
-   [WQL reference: GROUP BY](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/wql-reference/kqk1611267573270.html)
-   [WQL result limits](https://doc.workday.com/admin-guide/en-us/reporting-and-analytics/custom-reports-and-analytics/workday-query-language-wql-/future--reference--wql-result-limits.html)

## Related guides

[All guides](https://kiweely.com/guides)

-   [### GMS Sample Data in a Personal Workday Tenant: Default Accounts, Personas, and Proxying Personal Workday developer tenants ship pre-loaded with Global Modern Services (GMS) data and an initial admin login (typically lmcneil). Enable proxy access once so you can test Extend apps as employees, managers, and approvers.](https://kiweely.com/guides/workday-personal-tenant-gms-sample-data-proxy-guide)
-   [### Calling Workday REST, Graph, and WQL APIs From a Personal Developer Tenant Personal Workday developer tenants support REST, Graph, SOAP, and WQL APIs via the Developer Site API Explorers (60-minute access tokens) or an OAuth API Client configured inside the tenant. Watch the 20-record default page size and 100-record max cap.](https://kiweely.com/guides/workday-personal-developer-tenant-rest-graph-wql-apis)
-   [### What is Workday Query Language (WQL), and how do you write and run a query? Workday Query Language (WQL) is Workday’s SQL-like language for reading data from data sources and fields instead of reports. You need the Workday Query Language domain in the System functional area; an external caller also needs an API client with System scope.](https://kiweely.com/guides/workday-wql)
-   [### Why does my Workday WQL query fail? The exact error messages and how to fix each one Workday has no WQL message worded ‘instance set invalid for prompt’. A rejected prompt value returns ‘Invalid Parameter Values for parameter’ or ‘does not meet the restrictions defined for this field’. This page quotes each common error as Workday returned it, with the fix.](https://kiweely.com/guides/wql-error-messages)
-   [### How do I get more than 500 rows from a Workday WQL query? The 500-row stop belongs to the View WQL Query Result report, not WQL. The WQL REST API returns up to 10,000 rows per page (1 million per query) using limit and offset. Includes a 48,491-row worked run and Workday’s exact HTTP 500 pagination errors.](https://kiweely.com/guides/wql-more-than-500-rows)

### More guides on WQL

[All 35 guides](https://kiweely.com/guides#wql)

-   [How do you read worker photos through Workday APIs (REST, SOAP and WQL)?](https://kiweely.com/guides/workday-worker-photos-api-rest-soap-wql)
-   [Connecting Workday to Tableau: RaaS, WQL, Prism Analytics, and Workday Data Cloud Compared](https://kiweely.com/guides/connect-workday-to-tableau-raas-wql-data-cloud)
-   [How to Connect Workday RaaS and WQL to Power BI Without Hitting Timeouts or Pagination Limits](https://kiweely.com/guides/connect-workday-raas-wql-to-power-bi)
-   [Why does WQL return 403 permission denied S22 for an ISU?](https://kiweely.com/guides/workday-wql-403-s22-as-isu)
-   [Why does Convert Report to WQL break after a field rename?](https://kiweely.com/guides/workday-convert-report-to-wql-after-field-rename)
-   [Why does Convert Report to WQL say this field is missing an adhoc alias?](https://kiweely.com/guides/convert-report-to-wql-adhoc-alias)
-   [How do I build a Workday integration inventory report with every integration system, its template, schedule, last run and owner?](https://kiweely.com/guides/workday-integration-inventory-report-wql)
-   [Finding Unsubmitted Workday Time Blocks and Project Hours with WQL](https://kiweely.com/guides/workday-project-time-tracking-unsubmitted-hours-wql)

### From the blog on WQL

[All posts](https://kiweely.com/blog)

-   [Build vs. Buy a Workday MCP Server: OAuth 2.1, SOAP, WQL, and Twice-Yearly Releases](https://kiweely.com/blog/build-vs-buy-workday-mcp-server-engineering-cost)
-   [What happens after ChatGPT writes your WQL query](https://kiweely.com/blog/after-chatgpt-writes-your-wql)
-   [Answering Executive Span-of-Control and Headcount Questions Live from Workday](https://kiweely.com/blog/executive-org-span-of-control-attrition-questions-live-workday)

## Let Workday check the work.

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

[Start for free](https://kiweely.com/download) [Book a demo](https://kiweely.com/demo)

## Get the next guide in your inbox.

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