Back to Service

Method Details for GetEmployeeNormalWorkingHoursRaw.

Gets a list of employee normal working hours

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • employeeID Integer ID of specific employee. Set to 0 to get all employees
  • departmentID Integer ID of specific department. Set to 0 to get all employees
  • status Integer Set to 0 for inactive employees; 1 for active employees; -1 to get all employees

Returns

A list of employee normal working hour objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:EmployeeNormalWorkingTimes  xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"
                                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                 xsi:schemaLocation="http://www.timelog.com/XML/Schema/tlp/v4_4 http://www.timelog.com/api/xsd/EmployeeNormalWorkingHoursRaw.xsd">
  <tlp:EmployeeNormalWorkingTime>
    <tlp:Weekday>1</tlp:Weekday>
    <tlp:Name>Normal</tlp:Name>
    <tlp:WorkingHours>7.400000000000000</tlp:WorkingHours>
    <tlp:EmployeeID>373</tlp:EmployeeID>
    <tlp:EmployeeFirstName>Peter</tlp:EmployeeFirstName>
    <tlp:EmployeeLastName>Summersen</tlp:EmployeeLastName>
  </tlp:EmployeeNormalWorkingTime>
</tlp:EmployeeNormalWorkingTimes>

Result Schema

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4" 
            targetNamespace="http://www.timelog.com/XML/Schema/tlp/v4_4" 
            elementFormDefault="qualified" 
            attributeFormDefault="unqualified">
  <xsd:element name="EmployeeNormalWorkingTimes">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="EmployeeNormalWorkingTime" type="tlp:EmployeeNormalWorkingTimeRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="EmployeeNormalWorkingTime_Key">
      <xsd:selector xpath=".//tlp:EmployeeNormalWorkingTime" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>
  <xsd:complexType name="EmployeeNormalWorkingTimeRaw_Type">
    <xsd:sequence>
      <xsd:element name="Weekday" type="xsd:positiveInteger" />
      <xsd:element name="Name" type="xsd:string" />
      <xsd:element name="WorkingHours" type="xsd:float" />
      <xsd:element name="EmployeeID" type="xsd:positiveInteger" />
      <xsd:element name="EmployeeFirstName" type="xsd:string" />
      <xsd:element name="EmployeeLastName" type="xsd:string" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
  </xsd:complexType>
</xsd:schema>

Download the XSD