SWAPI – EmployeeWorkScheduleQuery

New SWAPI command returns work schedules for employees/technicians showing times employees are scheduled to start and end their day, similar to how work schedules are reflected in the SW21 Dispatch Center.  Work schedules are constructed for a date range using weekly regular work schedules from Employee Setup along with daily adjustments from timecard Day Start/Day End entries.  Schedules must be requested for a date or range of dates and may also be limited by employee code.

EmployeeWorkScheduleQuery

Request

<SessionRequest Version="string" SessionID="{7588E489-7E99-4F68-A3C8-F3E86BD92241}" RequestID="string">

  <EmployeeWorkScheduleQuery Filter="string" Max="string" OrderBy="string" StyleNo="string" StyleOptions="string">

    <Date>dateTime</Date>

    <DateThru>dateTime</DateThru>

    <EmployeeCode>string</EmployeeCode>

  </EmployeeWorkScheduleQuery>

</SessionRequest>

Response

<?xml version="1.0"?>

<EmployeeWorkScheduleQueryData RequestID="string">

  <EmployeeWorkScheduleQueryRecord>

    <EmployeeCode>string(10)</EmployeeCode>

    <Date>dateTime</Date>

    <StartDay>dateTime</StartDay>

    <EndDay>dateTime</EndDay>

  </EmployeeWorkScheduleQueryRecord>

</EmployeeWorkScheduleQueryData>