Back to Service

Method Details for GetAllocationsRaw.

Gets a list of allocations

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • allocationID Integer ID of specific allocation. Set to 0 to get all allocations
  • taskID Integer taskID of specific task. Set to 0 to get all allocations
  • employeeID Integer ID of specific employee. Set to 0 to get all allocations
  • projectID Integer ID of specific project. Set to 0 to get all allocations

Returns

A list of allocation objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8" ?>
<tlp:Allocations 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/AllocationsRaw.xsd">
  <tlp:Allocation ID="3929">
    <tlp:ProjectID>352</tlp:ProjectID>
    <tlp:TaskID>3792</tlp:TaskID>
    <tlp:EmployeeID>3</tlp:EmployeeID>
    <tlp:AllocatedHours>10.0000</tlp:AllocatedHours>
    <tlp:HourlyRate>1250.0000</tlp:HourlyRate>
    <tlp:TaskIsFixedPrice>0</tlp:TaskIsFixedPrice>
    <tlp:IsActive>0</tlp:IsActive>
    <tlp:StartsAt>2015-01-01T00:00:00</tlp:StartsAt>
    <tlp:EndsAt>2015-01-02T00:00:00</tlp:EndsAt>
  </tlp:Allocation>
  <tlp:Allocation ID="3930">
    <tlp:ProjectID>712</tlp:ProjectID>
    <tlp:TaskID>3793</tlp:TaskID>
    <tlp:EmployeeID>3</tlp:EmployeeID>
    <tlp:AllocatedHours>1.0000</tlp:AllocatedHours>
    <tlp:HourlyRate>0.0000</tlp:HourlyRate>
    <tlp:TaskIsFixedPrice>0</tlp:TaskIsFixedPrice>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:StartsAt>2015-01-01T00:00:00</tlp:StartsAt>
    <tlp:EndsAt>2015-01-02T00:00:00</tlp:EndsAt>
  </tlp:Allocation>
  <tlp:Allocation ID="3931">
    <tlp:ProjectID>712</tlp:ProjectID>
    <tlp:TaskID>3794</tlp:TaskID>
    <tlp:EmployeeID>3</tlp:EmployeeID>
    <tlp:AllocatedHours>0.0000</tlp:AllocatedHours>
    <tlp:HourlyRate>300.0000</tlp:HourlyRate>
    <tlp:TaskIsFixedPrice>0</tlp:TaskIsFixedPrice>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:StartsAt>2015-01-01T00:00:00</tlp:StartsAt>
    <tlp:EndsAt>2015-01-02T00:00:00</tlp:EndsAt>
  </tlp:Allocation>
  <tlp:Allocation ID="3932">
    <tlp:ProjectID>712</tlp:ProjectID>
    <tlp:TaskID>3795</tlp:TaskID>
    <tlp:EmployeeID>3</tlp:EmployeeID>
    <tlp:AllocatedHours>0.0000</tlp:AllocatedHours>
    <tlp:HourlyRate>0.0000</tlp:HourlyRate>
    <tlp:TaskIsFixedPrice>0</tlp:TaskIsFixedPrice>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:StartsAt>2015-01-01T00:00:00</tlp:StartsAt>
    <tlp:EndsAt>2015-01-02T00:00:00</tlp:EndsAt>
  </tlp:Allocation>
  <tlp:Allocation ID="3933">
    <tlp:ProjectID>712</tlp:ProjectID>
    <tlp:TaskID>3796</tlp:TaskID>
    <tlp:EmployeeID>3</tlp:EmployeeID>
    <tlp:AllocatedHours>4.0000</tlp:AllocatedHours>
    <tlp:HourlyRate>1250.0000</tlp:HourlyRate>
    <tlp:TaskIsFixedPrice>0</tlp:TaskIsFixedPrice>
    <tlp:IsActive>0</tlp:IsActive>
    <tlp:StartsAt>2015-01-01T00:00:00</tlp:StartsAt>
    <tlp:EndsAt>2015-01-02T00:00:00</tlp:EndsAt>
  </tlp:Allocation>
  <tlp:Allocation ID="3934">
    <tlp:ProjectID>712</tlp:ProjectID>
    <tlp:TaskID>3797</tlp:TaskID>
    <tlp:EmployeeID>3</tlp:EmployeeID>
    <tlp:AllocatedHours>4.0000</tlp:AllocatedHours>
    <tlp:HourlyRate>1250.0000</tlp:HourlyRate>
    <tlp:TaskIsFixedPrice>0</tlp:TaskIsFixedPrice>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:StartsAt>2015-01-01T00:00:00</tlp:StartsAt>
    <tlp:EndsAt>2015-01-02T00:00:00</tlp:EndsAt>
  </tlp:Allocation>
  <tlp:Allocation ID="3935">
    <tlp:ProjectID>712</tlp:ProjectID>
    <tlp:TaskID>3798</tlp:TaskID>
    <tlp:EmployeeID>3</tlp:EmployeeID>
    <tlp:AllocatedHours>4.0000</tlp:AllocatedHours>
    <tlp:HourlyRate>1250.0000</tlp:HourlyRate>
    <tlp:TaskIsFixedPrice>0</tlp:TaskIsFixedPrice>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:StartsAt>2015-01-01T00:00:00</tlp:StartsAt>
    <tlp:EndsAt>2015-01-02T00:00:00</tlp:EndsAt>
  </tlp:Allocation>
  <tlp:Allocation ID="3936">
    <tlp:ProjectID>712</tlp:ProjectID>
    <tlp:TaskID>3799</tlp:TaskID>
    <tlp:EmployeeID>14</tlp:EmployeeID>
    <tlp:AllocatedHours>0.5000</tlp:AllocatedHours>
    <tlp:HourlyRate>800.0000</tlp:HourlyRate>
    <tlp:TaskIsFixedPrice>0</tlp:TaskIsFixedPrice>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:StartsAt>2015-01-01T00:00:00</tlp:StartsAt>
    <tlp:EndsAt>2015-01-02T00:00:00</tlp:EndsAt>
  </tlp:Allocation>
</tlp:Allocations>

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="Allocations">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Allocation" type="tlp:AllocationRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="Allocation_Key">
      <xsd:selector xpath=".//tlp:Allocation" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="AllocationRaw_Type">
    <xsd:sequence>
      <xsd:element name="ProjectID" type="xsd:positiveInteger" />
      <xsd:element name="TaskID" type="xsd:positiveInteger" />
      <xsd:element name="EmployeeID" type="xsd:positiveInteger" />
      <xsd:element name="AllocatedHours" type="xsd:decimal" />
      <xsd:element name="HourlyRate" type="xsd:decimal" />
      <xsd:element name="TaskIsFixedPrice" type="xsd:boolean" />
      <xsd:element name="IsActive" type="xsd:boolean" />
      <xsd:element name="StartsAt" type="xsd:dateTime" />
      <xsd:element name="EndsAt" type="xsd:dateTime" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
  </xsd:complexType>
</xsd:schema>

Download the XSD