Method Details for GetTimeOffRegistrationsRaw.
Gets a list of time off registrations. Work units related to salary codes.
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 allocations
- departmentID Integer ID of specific department. Set to 0 to get all allocations
- fromDate DateTime (yyyy-MM-dd) Limits result to registrations with registration date on or later than this date
- toDate DateTime (yyyy-MM-dd) Limits result to registrations with registration date on or prior to this date
Returns
A list of work unit objects in XML format
Result Example
<?xml version="1.0" encoding="utf-8"?> <tlp:TimeOffRegistrations xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"> <tlp:TimeOffRegistration ID="60"> <tlp:EmployeeID>17</tlp:EmployeeID> <tlp:EmployeeInitials>JDO</tlp:EmployeeInitials> <tlp:EmployeeFirstName>John</tlp:EmployeeFirstName> <tlp:EmployeeLastName>Doe</tlp:EmployeeLastName> <tlp:TimeOffCode>70</tlp:TimeOffCode> <tlp:TimeOffName>Afspadsering</tlp:TimeOffName> <tlp:AbsenceCodeType>2</tlp:AbsenceCodeType> <tlp:AbsenceCodeTypeName>Vacation</tlp:AbsenceCodeTypeName> <tlp:Date>2018-10-29T00:00:00</tlp:Date> <tlp:RegHours>3.000000000000000e+000</tlp:RegHours> <tlp:CreatedAt>2018-10-30T09:59:22.3200000</tlp:CreatedAt> <tlp:CreatedByEmployeeId>17</tlp:CreatedByEmployeeId> <tlp:CreatedBy>JDO</tlp:CreatedBy> <tlp:LastModifiedAt>2018-10-30T09:59:22.3200000</tlp:LastModifiedAt> <tlp:LastModifiedByEmployeeId>17</tlp:LastModifiedByEmployeeId> <tlp:LastModifiedBy>JDO</tlp:LastModifiedBy> </tlp:TimeOffRegistration> </tlp:TimeOffRegistrations>
Result Schema
<?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.timelog.com/XML/Schema/tlp/v4_4" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="TimeOffRegistrations"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="TimeOffRegistration"> <xs:complexType> <xs:sequence> <xs:element name="EmployeeID" type="xs:positiveInteger" /> <xs:element name="EmployeeInitials" type="xs:string" /> <xs:element name="EmployeeFirstName" type="xs:string" /> <xs:element name="EmployeeLastName" type="xs:string" /> <xs:element name="TimeOffCode" type="xs:unsignedByte" /> <xs:element name="TimeOffName" type="xs:string" /> <xs:element name="AbsenceCodeType" type="xs:positiveInteger" minOccurs="0" /> <xs:element name="AbsenceCodeTypeName" type="xs:string" minOccurs="0" /> <xs:element name="Date" type="xs:dateTime" /> <xs:element name="RegHours" type="xs:float" /> <xs:element name="CreatedAt" type="xs:dateTime" /> <xs:element name="CreatedByEmployeeId" type="xs:positiveInteger" /> <xs:element name="CreatedBy" type="xs:string" /> <xs:element name="LastModifiedAt" type="xs:dateTime" /> <xs:element name="LastModifiedByEmployeeId" type="xs:positiveInteger" /> <xs:element name="LastModifiedBy" type="xs:string" /> </xs:sequence> <xs:attribute name="ID" type="xs:positiveInteger" use="required" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>