Back to Service

Method Details for GetHardBookingsRaw.

Get a list of hardbookings

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:TaskID>18110</tlp:TaskID>
    <tlp:TaskName>Documentation PM725</tlp:TaskName>
    <tlp:TaskWBS>8</tlp:TaskWBS>
    <tlp:ProjectID>1628</tlp:ProjectID>
    <tlp:ProjectNo>1635</tlp:ProjectNo>
    <tlp:ProjectName>TimeLog A/S Vedligehold</tlp:ProjectName>
    <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:TaskID>18110</tlp:TaskID>
    <tlp:TaskName>Performance PM725</tlp:TaskName>
    <tlp:TaskWBS>8</tlp:TaskWBS>
    <tlp:ProjectID>1628</tlp:ProjectID>
    <tlp:ProjectNo>1635</tlp:ProjectNo>
    <tlp:ProjectName>TimeLog A/S Vedligehold</tlp:ProjectName>
    <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>