Back to Service

Method Details for GetFlexTimeRaw.

Gets a list of flex registrations and flex adjustments. Kept for legacy purposes, use GetSalaryAccountEmployeePostingsRaw instead

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • employeeUserID Integer ID of specific employeeUser. Set to 0 to get all flex registrations
  • departmentID Integer ID of specific department. Set to 0 to get all flex registrations
  • fromDate DateTime (yyyy-MM-dd) Limits result to flex registrations with registration date on or later than this date
  • toDate DateTime (yyyy-MM-dd) Limits result to flex registrations with registration date on or prior to this date

Returns

A list of flex registrations objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:FlexTimes  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/FlexTimesRaw.xsd" >
  <tlp:FlexTime>
    <tlp:Date>2017-06-28T00:00:00</tlp:Date>
    <tlp:FlexTime>-7.400</tlp:FlexTime>
    <tlp:EmployeeUserID>1</tlp:EmployeeUserID>
    <tlp:EmployeeInitials>gha</tlp:EmployeeInitials>
    <tlp:EmployeeFullName>Gilli Haraldsen</tlp:EmployeeFullName>
    <tlp:DepartmentID>1</tlp:DepartmentID>
    <tlp:Department>TimeLog A/S</tlp:Department>
    <tlp:Type>Flex</tlp:Type>
    <tlp:Description>Comment</tlp:Description>
  </tlp:FlexTime>
</tlp:FlexTimes>

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="FlexTimes" >
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="FlexTime" type="tlp:FlexTimeRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    
  </xsd:element>

  <xsd:complexType name="FlexTimeRaw_Type">
    <xsd:sequence>
      <xsd:element name="Date" type="xsd:dateTime" />
      <xsd:element name="FlexTime" type="xsd:decimal" />
      <xsd:element name="EmployeeUserID" type="xsd:positiveInteger" />
      <xsd:element name="EmployeeInitials" type="xsd:string" />
      <xsd:element name="EmployeeFullName" type="xsd:string" />
      <xsd:element name="DepartmentID" type="xsd:positiveInteger" />
      <xsd:element name="Department" type="xsd:string" />
      <xsd:element name="Type" type="xsd:string"  />
      <xsd:element name="Description" type="xsd:string" />
    
    </xsd:sequence>
   
  </xsd:complexType>
  
</xsd:schema>

Download the XSD