### Example GET Request for Supported Data Sources Source: https://developer.workday.com/documentation/GUID-e50a3478-d091-4f09-87f9-d96d77bb6a71-enHYPHENus/GenerateWQLRESTAPI An example of a complete URL to call the Supported Data Sources endpoint. ```http GET https://api.workday.com/ml/dataQuery/v1/supportedDataSources ``` -------------------------------- ### GET Workers/Organizations Request Example Source: https://developer.workday.com/documentation/jas1401209342562/ReferenceWorkersOrganizations Example GET request to retrieve organization assignments for a specific worker identified by their WID. ```http GET /workers/f07f269bf85445bf807ee12d0acc80c9/organizations ``` -------------------------------- ### GET Workers/Pay Slips Request Example Source: https://developer.workday.com/documentation/jas1381793624924/ReferenceWorkersPaySlips Example GET request to retrieve pay slips for a specific worker using their ID. ```http GET /workers/66faa65677834f0a9b586dd5645e9004/paySlips ``` -------------------------------- ### Example URL with Path Parameters Source: https://developer.workday.com/documentation/urd1528494500512/ReferencePredefinedAppVariables Shows how path parameter values are displayed in the URL after a button click. ```url ../reviewDetails/12345/Review%20Details ``` -------------------------------- ### Example Usage of get() Source: https://developer.workday.com/documentation/pcp1648254726457 Demonstrates retrieving an element from a list using the get() method. The example shows accessing the element at index 1. ```javascript [1, 2, 3].get(1) ``` -------------------------------- ### Example: Select Student Data with Filters Source: https://developer.workday.com/documentation/GUID-608ff22c-1931-4c40-9a95-6bd0751133fe-enHYPHENus/FROM Retrieve student's first name, academic unit, and level from 'studentApplications'. This example uses a data source filter to specify the academic unit and level. ```WQL SELECT firstName, academicUnit, academicLevel FROM studentApplications (dataSourceFilter = studentApplicationsByAcademicUnitAndAcademicLevel, academicUnit = {Workday ID}, academicLevel = {Workday ID}) ``` -------------------------------- ### GET Workers/Organizations Response Example Source: https://developer.workday.com/documentation/jas1401209342562/ReferenceWorkersOrganizations Example JSON response for a GET Workers/Organizations request, showing the total number of assignments and a single organization entry. ```json { "total": 8, "data": [ { "descriptor": "United States", "id": "3ebf81b54c0a43da9cfe1d0a3432bbb7", "organizationType": { "descriptor": "Region Hierarchy", "id": "04067490dbfd458caf7d0d4d5e2f11df" } }, ... ] } ``` -------------------------------- ### Help Source: https://developer.workday.com/documentation/GUID-16d9d3f3-ba63-4022-8a84-ad78bd5189ca-enHYPHENus/ReferenceWorkdayDeveloperCLIWDCLIforExtendAppsCommands Displays list and syntax of WDCLI commands. ```bash wdcli help ``` -------------------------------- ### Tenant Base Path Example Source: https://developer.workday.com/documentation/GUID-68a6fcd0-e930-41f7-878f-fe4998f06cd1-enHYPHENus This example shows the base path for traditional Integrations using tenanted REST APIs calls. Ensure to replace placeholders with your specific tenant details. ```text https:///api/worktag// ``` -------------------------------- ### Instance Method: Get Substring from Start Index Source: https://developer.workday.com/documentation/ykl1648492918729/substringstartIndex Use the instance method to get a substring starting from a specific index within the string. The index is zero-based. ```javascript 'The quick brown fox'.substring(4) ``` -------------------------------- ### GET Workers/History Response Example Source: https://developer.workday.com/documentation/dan1370797992673/ReferenceWorkersHistory Example JSON response for a GET Workers/History request, showing the total number of history items and a sample data entry. ```JSON { "total": 16, "data": [ { "descriptor": "Hire: Betty Liu", "id": "d32900f8d0f649f9aac3cf82c0e26852", "href": "https://{Workday REST API Endpoint}/businessProcesses/d32900f8d0f649f9aac3cf82c0e26852", "dueDate": "2007-06-20", "effectiveDate": "2000-01-01", "initiator": { "descriptor": "Logan McNeil", "id": "3aa5550b7fe348b98d7b5741afc65534", "href": "https://{Workday REST API Endpoint}/workers/3aa5550b7fe348b98d7b5741afc65534" }, "status": "Successfully Completed", "subject": { "descriptor": "Director, Payroll Operations - Betty Liu", "id": "3db5d9e1081e470bb98d5a3d15b67180" } }, ... ] } ```