> ## Documentation Index
> Fetch the complete documentation index at: https://stackone-hub-docs-confluence-api-token-update.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Workday WQL (OAuth)

> Follow these steps to understand the process and actions required for a successful connection.

<Warning>
  This guidance assumes you have administrator privileges for your Workday account.
</Warning>

## Finding your Workday Tenant

Log in to your Workday account. In the browser’s address bar, locate your tenant immediately after `workday.com/`.<br />

If your URL is `https://my-instance.workday.com/my-tenant/d/etc`, your tenant is `my-tenant`.

<Frame>
  <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Workday Tenant" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image1.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=8efda5a9b9c7f6a900739249682dcdd3" width="1437" height="328" data-path="images/workday-wql/image1.png" />
</Frame>

## Finding the Web Services Endpoint

<Steps>
  <Step title="Go to Public Web Services">
    Search and navigate to the `Public Web Services` report.

    <Frame>
      <img className="rounded-md" style={{ margin: '0 auto', border: '1px solid #efefef' }} alt="Human Resources Web Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image2.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=a8ab11ab969e8e539f0307e64ede75b8" width="550" height="123" data-path="images/workday-wql/image2.png" />
    </Frame>
  </Step>

  <Step title="Open the Human Resources WSDL">
    Locate **Human Resources** and hover to open the menu. From the three‑dot menu choose `Web Service` then click `View WSDL` (the page may take a minute to load).

    <Frame>
      <img className="rounded-md" style={{ margin: '0 auto', border: '1px solid #efefef' }} alt="WSDL Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image3.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=bb25c0513b1277a434f227cf15b23192" width="634" height="440" data-path="images/workday-wql/image3.png" />
    </Frame>
  </Step>

  <Step title="Locate the wsdl:service element">
    Search for `wsdl:service` or scroll to the bottom of the page. You should see a section like this:

    <Frame>
      <img className="rounded-md" style={{ margin: '0 auto', border: '1px solid #efefef' }} alt="WSDL Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image4.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=ed661f40cf9f3f8171519503316e80e8" width="986" height="93" data-path="images/workday-wql/image4.png" />
    </Frame>

    Copy everything before `/service` in the location attribute. Exclude the `https://` prefix. In the example above this would be `wd2-impl-services1.workday.com/ccx` (yours may differ, e.g. `wd5-services1.myworkday.com/ccx`). <br /><br />

    Save this value to be used in a later step.
  </Step>
</Steps>

## Set up an Integration System User

<Steps>
  <Step title="Search for Create Integration System User">
    Search and navigate to the `Create Integration System User` task.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Create Integration System User" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image5.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=742e551bf01629209857da4c50606ea9" width="550" height="123" data-path="images/workday-wql/image5.png" />
    </Frame>
  </Step>

  <Step title="Enter account information">
    Enter a username and password in the Account Information section.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Account Information" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image6.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=588458fa3d43991c623cb7ddd1f79681" width="764" height="769" data-path="images/workday-wql/image6.png" />
    </Frame>

    Click `OK` to create the user.
  </Step>
</Steps>

## Add the Integration System User to a Security Group

<Steps>
  <Step title="Search for Create Security Group">
    Search and navigate to the `Create Security Group` task.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Create Security Group" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image7.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=a40b53021b9aed0582855d72604c1684" width="550" height="123" data-path="images/workday-wql/image7.png" />
    </Frame>
  </Step>

  <Step title="Choose group type">
    Select `Integration System Security Group (Unconstrained)` from the Type of Tenanted Security Group drop‑down and enter the same name used when creating the Integration System User.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Security Group Type" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image8.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=4075beb8a7f5769c9ec7521ca0fe2fcf" width="444" height="174" data-path="images/workday-wql/image8.png" />
    </Frame>

    Click `OK`.
  </Step>

  <Step title="Assign the Security Group to the Integration System Users">
    Select `Integration System Users` from the drop-down menu. You may choose the user created in the [step](#set-up-an-integration-system-user) above or any other user to whom you want to assign this security group.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Assign User to Security Group" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image25.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=2582210ea78e5278dc9bf6f63712633b" width="873" height="342" data-path="images/workday-wql/image25.png" />
    </Frame>

    Click `OK`.
  </Step>
</Steps>

## Configure Domain Security Policy Permissions

<Steps>
  <Step title="Search for Maintain Permissions for Security Group">
    Search and navigate to the `Maintain Permissions for Security Group` task.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Create Security Group" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image9.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=a42a68f9a0143ea47f0fb79cb10d294a" width="550" height="123" data-path="images/workday-wql/image9.png" />
    </Frame>
  </Step>

  <Step title="Select Security Group Type">
    Select the Security Group name created earlier.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Create Security Group" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image10.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=883adbdfdf86d58d318f0de0ed391239" width="1015" height="449" data-path="images/workday-wql/image10.png" />
    </Frame>

    This integration uses the following Workday Security Group permissions.
    Set each listed permission to **Get Only/View Only** for read access in the *View/Modify Access* column.

    <Info>
      The Workday HRIS integration currently requires **all** of the permissions listed below to be enabled for full support. <br />

      Workday's API may return an error response if any of these permissions are missing.
    </Info>

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="View/Modify Access" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image13.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=48641e7cf86efc5b9d7442062785cfa5" width="1819" height="404" data-path="images/workday-wql/image13.png" />
    </Frame>

    <Note>
      Please note that Security Group Permissions can be customised within a Workday organisation, and this list does not account for such customisations.
    </Note>

    | Domain Security Policy                    | View/Modify Access |
    | ----------------------------------------- | ------------------ |
    | WQL for Workday Extend                    | Get Only           |
    | Worker Data: Current Staffing Information | Get Only           |
    | Workday Query Language                    | Get Only           |
    | Workday Query Language                    | View Only          |
    | Person Data: Name                         | Get Only           |
    | Person Data: Marital Status               | Get Only           |
    | Person Data: Work Email                   | Get Only           |
    | Person Data: ID Information               | Get Only           |
    | Person Data: Home Phone                   | Get Only           |
    | Person Data: Gender                       | Get Only           |
    | Person Data: Home Email                   | Get Only           |
    | Person Data: Date of Birth                | Get Only           |
    | Person Data: Work Phone                   | Get Only           |
    | Person Data: Ethnicity                    | Get Only           |

    <Warning>
      Depending on the fields included in your custom report, additional **Domain Security Policy Permissions** may be required.
      If you encounter `null` values in the API response, review and add the necessary permissions accordingly.
    </Warning>
  </Step>
</Steps>

## Activate the Security Policy Changes

<Steps>
  <Step title="Search for Activate Pending Security Policy Changes">
    Search and navigate to the `Activate Pending Security Policy Changes` task.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Human Resources Web Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image14.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=c021957308650c70ca201ae8b96515c6" width="550" height="120" data-path="images/workday-wql/image14.png" />
    </Frame>
  </Step>

  <Step title="Comment and Confirm">
    Add an optional comment then click `OK`.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Human Resources Web Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image15.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=c6d12c05a810bb9bc70371a691b19584" width="1049" height="459" data-path="images/workday-wql/image15.png" />
    </Frame>

    Review the policies that require approval in the summary of the security policy changes. Tick the confirmation box and click `OK` to approve the pending security policy changes to activate them.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Human Resources Web Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image16.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=aabb2ee9dcc9c1c388d9cea5f425deda" width="1093" height="607" data-path="images/workday-wql/image16.png" />
    </Frame>

    <Warning>
      You must **activate security changes** each time you modify Domain Security Policy Permissions; otherwise changes will not take effect.
    </Warning>
  </Step>
</Steps>

## Register the REST API Client

<Steps>
  <Step title="Go to Register API Client">
    Search and navigate to the `Register API Client for Integrations` task.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Human Resources Web Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image17.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=575db9f93eca87d56c24fdb32aa09c72" width="550" height="122" data-path="images/workday-wql/image17.png" />
    </Frame>
  </Step>

  <Step title="Register API Client">
    Register the API client with the following details:

    * **Client Name**: Any name (e.g. `StackOne_Integrations`).
    * **Non‑Expiring Refresh Tokens**: Tick the box.
    * **Scopes**: Select required functional scopes for API access:

      * *Adaptive Planning for Financial Plans*
      * *Adaptive Planning for the Workforce*
      * *Staffing*
      * *System*

          <Frame>
            <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="WSDL Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image18.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=4a9c2a09a60187a79eb08173933de855" width="681" height="648" data-path="images/workday-wql/image18.png" />
          </Frame>

      Click `OK`.
  </Step>

  <Step title="Copy the Credentials">
    After registration a page displays the **Client ID** and **Client Secret**. Copy and store these credentials securely.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="WSDL Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image19.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=4f871aa35a1974fa2c9664562a8917a8" width="1094" height="677" data-path="images/workday-wql/image19.png" />
    </Frame>
  </Step>

  <Step title="Generate the Refresh Token">
    * At the top of the page click the **menu (⋯)** icon.
    * Select **API Client**.
    * Click **Manage Refresh Tokens for Integrations**.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="WSDL Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image20.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=eeedbaeb3c8cd9ca39aad2a5508d80c6" width="1056" height="504" data-path="images/workday-wql/image20.png" />
    </Frame>

    Choose your Workday account (the [Integration System User](#set-up-an-integration-system-user) you've created earlier) and click `OK`.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="WSDL Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image21.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=f8bf792809571287f6d88ac9b07a1f05" width="632" height="314" data-path="images/workday-wql/image21.png" />
    </Frame>

    On the refresh token page select **Generate New Refresh Token** and click `OK`.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="WSDL Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image22.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=7a44164ae42d083ef87efbf4446b5013" width="933" height="729" data-path="images/workday-wql/image22.png" />
    </Frame>

    When generated, copy the token and click `Done`.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="WSDL Service" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/image23.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=ec1a1e5afe8357a0b6dcc3478c570dd3" width="1674" height="321" data-path="images/workday-wql/image23.png" />
    </Frame>
  </Step>
</Steps>

## Custom WQL Query

<Warning>
  This section outlines a recommended workflow for generating a WQL query. If your organisation already has a validated WQL query for the required employee data, you can skip these steps and proceed directly to **[Connecting to StackOne](#connecting-to-stackone)**.
</Warning>

<Note>
  Creating a custom report is optional for generating WQL (Workday Query Language). However, there are several ways to obtain WQL: <br />

  * **Custom Report**: 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.<br />
  * **Standard Reports**: You can utilise existing standard reports and convert them directly to WQL. To do this, navigate to **Convert Report to WQL** and select the `Standard Report`.<br />
  * **Data Sources**: You can also navigate to the **Data Sources** 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.
</Note>

## Create and View a Custom Report

<Steps>
  <Step title="Go to Create Custom Report">
    Search and navigate to the `Create Custom Report` task

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Accessing Report Designer" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_custom_create_report_1.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=8acaf4999084973313d9c0291e5dc4b9" width="548" height="124" data-path="images/workday-wql/workday_wql_custom_create_report_1.png" />
    </Frame>
  </Step>

  <Step title="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).

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Create Custom Report" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_create_custom_report.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=d923d396af7a587435a5b9ceaa5e0128" width="1159" height="604" data-path="images/workday-wql/workday_wql_create_custom_report.png" />
    </Frame>

    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.

    <Note>
      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.
    </Note>

    <Info>
      Add following **field's Alias** 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
    </Info>

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Fields and Aliases Settings" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_fields_aliases.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=bbc240a2fd9d794b4f2f0348a6f200c4" width="2283" height="1237" data-path="images/workday-wql/workday_wql_fields_aliases.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Prompts Settings" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_custom_report_prompt.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=fd695ab4b668f8e3492e080a53a90b52" width="1123" height="1088" data-path="images/workday-wql/workday_wql_custom_report_prompt.png" />
    </Frame>

    Click `OK` to save the report.
  </Step>

  <Step title="Go to View Custom Report">
    Search for `View Custom Report`,

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Search for View Custom Report" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_search_for_view_custom_report.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=9ebb2d5a1fe5a74373911812f4d38d93" width="553" height="124" data-path="images/workday-wql/workday_wql_search_for_view_custom_report.png" />
    </Frame>

    select the report you just created, and then click `OK` to open it.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Select Custom report to View" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_select_for_view_custom_report.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=169e0eae541fcc19fa682fd9ff06f340" width="630" height="310" data-path="images/workday-wql/workday_wql_select_for_view_custom_report.png" />
    </Frame>
  </Step>

  <Step title="Test Custom Report">
    Navigate to `Test` under the `Custom Report` menu via the 3-dot menu.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Navigate to Test" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_navigate_to_test.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=488ab5539c1fda0c96bd8790ece508ed" width="795" height="281" data-path="images/workday-wql/workday_wql_navigate_to_test.png" />
    </Frame>

    Click `OK` to test it.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Click OK on Pop-up" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_click_ok_to_move_forward_to_test.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=24354a5a48035dbe4a7719d18efe4cef" width="628" height="376" data-path="images/workday-wql/workday_wql_click_ok_to_move_forward_to_test.png" />
    </Frame>

    You will get some sample data based on the fields you configured in the custom report.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Sample Data from Custom Report" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_sample_data_from_custom_report.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=cc4baebce4eafc9599b40b531f9d1fd0" width="1540" height="482" data-path="images/workday-wql/workday_wql_sample_data_from_custom_report.png" />
    </Frame>
  </Step>
</Steps>

## Convert the Report to WQL in Workday

<Steps>
  <Step title="Go to Convert Reports to WQL">
    Use the global search bar to search for "Convert Reports to WQL".

    <Frame>
      <img src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_convert_report_to_wql_5.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=182ed98a6a4cd00c2d616854b85e2825" alt="Global search for Convert Reports to WQL" style={{ maxHeight: '500px', width: 'auto' }} width="551" height="123" data-path="images/workday-wql/workday_wql_convert_report_to_wql_5.png" />
    </Frame>

    Select the custom report you created earlier in the [Create and View a Custom Report](#create-and-view-a-custom-report) step.

    <Frame>
      <img src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_crw_select_report_6.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=04a262d58c1eb5bcd1633291ffa34a95" alt="Select created custom report" style={{ maxHeight: '500px', width: 'auto' }} width="649" height="314" data-path="images/workday-wql/workday_wql_crw_select_report_6.png" />
    </Frame>

    Click `OK`.
  </Step>

  <Step title="Click `OK` to continue">
    <Frame>
      <img src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_click_to_continue.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=117b1e36a0f2959efecb0efb98131dc6" alt="Click to continue without filter" style={{ maxHeight: '500px', width: 'auto' }} width="569" height="361" data-path="images/workday-wql/workday_wql_click_to_continue.png" />
    </Frame>
  </Step>

  <Step title="Get the generated WQL query">
    You are taken to a page showing the generated WQL query for your custom report.

    <Frame>
      <img src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_crw_generate_7.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=8534e6e96b846f6c728862e9c7c2ea47" alt="Generated WQL Query" style={{ maxHeight: '500px', width: 'auto' }} width="738" height="272" data-path="images/workday-wql/workday_wql_crw_generate_7.png" />
    </Frame>

    Copy this WQL query and paste it into the `Employee WQL Query` field when connecting through the StackOne Connector Hub.

    <Note>
      WQL does not support calculated fields when converting custom reports to WQL.
    </Note>
  </Step>
</Steps>

## Connecting to StackOne

Enter the following details in the StackOne Connector Hub:

* **[Web Service Endpoint](#finding-the-web-services-endpoint)**
* **[Tenant](#finding-your-workday-tenant)**
* **[Client ID](#register-the-rest-api-client)**
* **[Client Secret](#register-the-rest-api-client)**
* **[Non-expiring Refresh Token](#register-the-rest-api-client)**
* **Employee WQL Query**: The custom Workday Query Language (WQL) query used when fetching employees.

  ```sql theme={null}
  /* Sample WQL query format */
  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
  ```

Click **Connect**.

<Frame>
  <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Linking your Account" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/Cmc9v6zkKIhKV8Me/images/workday-wql/workday_wql_stackone_connector_hub_10.png?fit=max&auto=format&n=Cmc9v6zkKIhKV8Me&q=85&s=fbff0c199cfeb57b7e0106be7c4c0e22" width="843" height="604" data-path="images/workday-wql/workday_wql_stackone_connector_hub_10.png" />
</Frame>

<br />

Congratulations, you're all set! If you face any issues with the steps mentioned above,
please contact us by emailing [integrations@stackone.com](mailto:integrations@stackone.com). We're always here to assist you!

<Card title="Useful Links" icon="link" href="https://doc.workday.com">
  [https://doc.workday.com](https://doc.workday.com)
</Card>
