Back to Service

Method Details for GetHardBookingsRaw.

Get a list of hardbookings

Definition

TimeLog.TLP.WebAppCode.Service.GetHardBookingsRaw(System.String,System.String,System.String,System.Int32,System.DateTime,System.DateTime,System.Int32)

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • employeeUserId Integer User ID of specific employee. Set to 0 to get all
  • startDate DateTime (yyyy-MM-dd) Limits result to all hard bookings on or later than this date
  • endDate DateTime (yyyy-MM-dd) Limits result to all hard bookings on or prior to this date
  • hardbookingType Integer Set to 0 for manual bookings; 1 for calendar bookings; -1 for all

Returns

A list of hardbookings in XML format

Result Example

<?xml version="1.0" encoding="utf-8" ?>
<tlp:Hardbookings
  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/GetHardbookingRaw.xsd">
  <tlp:Hardbooking ID="1593" GUID="14E8F1E7-BF98-43AE-BBC7-250B865BBD59">
    <tlp:EmployeeUserID>62</tlp:EmployeeUserID>
    <tlp:AllocationID>71054</tlp:AllocationID>
    <tlp:Date>2018-07-06T00:00:00</tlp:Date>
    <tlp:Hours>1.000000000000000e+000</tlp:Hours>
    <tlp:HardBookingType>0</tlp:HardBookingType>
    <tlp:UID></tlp:UID>
    <tlp:RecurrenceID></tlp:RecurrenceID>
  </tlp:Hardbooking>
  <tlp:Hardbooking ID="1594" GUID="4EF75E13-1B54-4625-8402-0C556BD8FB56">
    <tlp:EmployeeUserID>62</tlp:EmployeeUserID>
    <tlp:AllocationID>71055</tlp:AllocationID>
    <tlp:Date>2018-07-06T00:00:00</tlp:Date>
    <tlp:Hours>1.000000000000000e+000</tlp:Hours>
    <tlp:HardBookingType>0</tlp:HardBookingType>
    <tlp:UID></tlp:UID>
    <tlp:RecurrenceID></tlp:RecurrenceID>
  </tlp:Hardbooking>
</tlp:Hardbookings>

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="Hardbookings">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Hardbooking" type="tlp:Hardbooking_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="Hardbooking_Key">
      <xsd:selector xpath=".//tlp:Hardbooking" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>
  <xsd:complexType name="Hardbooking_Type">
    <xsd:sequence>
      <xsd:element name="EmployeeUserID" type="xsd:positiveInteger" />
      <xsd:element name="AllocationID" type="xsd:positiveInteger" />
      <xsd:element name="Date" type="xsd:dateTime" />
      <xsd:element name="CustomerName" type="xsd:string" />
      <xsd:element name="Hours" type="xsd:decimal" />
      <xsd:element name="HardBookingType" type="xsd:positiveInteger" />
      <xsd:element name="UID" type="xsd:string" minOccurs="0" />
      <xsd:element name="RecurrenceID" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required"></xsd:attribute>
    <xsd:attribute name="GUID" type="xsd:string" use="required"></xsd:attribute>
  </xsd:complexType>
</xsd:schema>

Download the XSD