Skip to main content

Overview

Workday Query Language (WQL) is a powerful capability that lets users run complex queries against Workday data structures. This guide introduces using WQL within StackOne integrations so you can retrieve and shape Workday data effectively through custom reports.

Key Features of WQL

  • Data retrieval: Extract specific data sources and their fields from Workday’s extensive datasets.
  • Flexible querying: Construct queries to filter, sort, and aggregate Workday data.
  • Nested data access: Access and work with nested data structures in Workday.

Example Query

Example WQL query to retrieve workers and selected attributes:
SELECT workdayID as Workday_ID, employeeID as Employee_ID, legalName_Title as Title, legalFirstName as First_Name, legalLastName as Last_Name, legalNameInGeneralDisplayFormat as Display_Full_Name, email_PrimaryHome as Personal_Email, email_PrimaryWork as Work_Email, phone_PrimaryHome as Personal_Phone_Number FROM allWorkers
Creating a custom report is optional for generating WQL (Workday Query Language). However, there are several ways to obtain WQL:
  • Custom Report Feature: By using the custom report feature, users can more accurately tailor the data they wish to extract from the data source and then convert the report to WQL.
  • Standard Reports: You can utilize existing standard reports and convert them directly to WQL. To do this, navigate to Convert Report to WQL and select the Standard Report.
  • Data Source Navigation: You can also navigate to the Data Source using global search and access a specific data source (e.g., All Workers) to view the available data source fields. From there, you can form a WQL query according to the WQL syntax.

Create and View a Custom Report

1

Go to Create Custom Report

Search and navigate to the Create Custom Report task
Accessing Report Designer
2

Configure custom report

Follow these steps to configure the custom report:
  • Report Name: Must be unique within the tenant
  • Report Type: Select Advanced
  • Optimised for Performance: Tick this box to enhance performance
  • Data Source: Choose the appropriate data source based on the data you need (e.g. Workers for HCM reporting).
Create Custom Report
Click OK to continue.Add and configure report fields:
  • Click the + icon to add a field.
  • Select a Business Object (e.g. Worker) in the Business Object column.
  • Choose the specific field (e.g. Employee ID) in the Field column.
  • Set aliases in Column Heading Override to ensure stable field names in API responses.
The Column Heading Override XML Alias column will appear only after you enable Enable As Web Service under the Advanced tab and save the report. You can view this column when you return to edit the report.
Add the following field aliases in your report. The aliases serve as stable identifiers for the API responses but the underlying fields must be properly configured.
  • Workday_ID
  • Employee_ID
  • Title
  • First_Name
  • Last_Name
  • Display_Full_Name
  • Personal_Email
  • Work_Email
  • Personal_Phone_Number
  • Work_Phone_Number
  • Gender
  • Ethnicity
  • Date_Of_Birth
  • Marital_Status
  • Job_Title
  • Company
  • Hire_Date
  • Original_Hire_Date
  • Employment_Status
  • Location
  • Employment_Type
  • Manager
  • Cost_Centers
  • National_Identifier_Numbers
  • Termination_Date
  • Home_Address
  • Home_Address_Country
  • Home_Address_Postal_Code
  • Home_Address_State
  • Home_Address_City
  • Work_Address
  • Work_Address_Country
  • Citizenships
  • Job_Code
  • Effective_Date
  • Grade
  • Benefits
  • Skills
Fields and Aliases Settings
3

Configure report prompts

  • Tick Populate Undefined Prompt Defaults to make prompt default fields visible in the report table. Once the Prompt Defaults grid is visible, the ticked Populate Undefined Prompt Defaults field will be unticked again.
  • Tick Display Prompt Values in Subtitle to enable prompt display.
Prompts Settings
4

Go to View Custom Report

Search for View Custom Report.
Search for View Custom Report
select the report you just created, and then click OK to open it.
Select Custom report to View
5

Test Custom Report

Navigate to Test under the Custom Report menu via the 3-dot menu.
Navigate to Test
Click OK to test it.
Click OK on Pop-up
You will get some sample data based on the fields you configured in the custom report.
Sample Data from Custom Report

Convert the Report to WQL in Workday

1

Go to Convert Reports to WQL

Use the global search bar to search for “Convert Reports to WQL”.
Global search for Convert Reports to WQL
Select the custom report you created earlier in the Create and View a Custom Report step.
Select created custom report
Click OK.
2

Click `OK` to continue

Click to continue without filter
3

Get the generated WQL query

You are taken to a page showing the generated WQL query for your custom report.
Generated WQL Query
Copy this WQL query and paste it into the Employee WQL Query field when connecting through the StackOne Connector Hub.
WQL does not support calculated fields when converting custom reports to WQL.

StackOne Configuration

To enable Workday WQL in StackOne, go to the HRIS category on the Integrations page and enable Workday WQL.
Activate Workday
Select OAuth2 as the authentication type.
Activate Workday
Click Confirm or Save Changes to enable the Workday integration, allowing users to link their accounts via the StackOne Connector Hub.

ATS User Enablement

Users connect their Workday accounts through the StackOne Connector Hub by providing the WQL query generated in their Workday account.
Activate Workday
Users will receive data based on the WQL query provided during the connection setup when they request a list of employees using the Unified APIs.

Limitations of WQL

  • Calculated fields: WQL does not support calculated fields when converting custom reports to WQL.