Method Details for GetSupportCaseRaw.
Gets a list of support cases
Parameters
- siteCode String Unique identification for your TimeLog account
- apiID String The API ID
- apiPassword String The API password
- supportCaseID Integer ID of specific support case. Set to 0 to get all
- supportNo String Support case number. Set to empty string to get all
- employeeID Integer ID of specific Employee. Set to 0 to get all
- customerID Integer ID of an Customer. Set to 0 to get all
- supportContractID Integer ID of an support contract. Set to 0 to get all
- supportTypeID Integer ID of an support type. Set to 0 to get all
- departmentID Integer ID of an department. Set to 0 to get all
- status Integer ID of an Status. Set to 0 to get all. (1 = Open; 2 = Closed; 3 = Pending, 4 = Ready for Closure; 5 = Cancelled)
Returns
A list of support case objects in XML format
Result Example
<?xml version="1.0" encoding="utf-8"?> <tlp:SupportCases xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"> <tlp:SupportCase ID="1804"> <tlp:Header>Tracker not working - no login</tlp:Header> <tlp:No>S08.0181</tlp:No> <tlp:Comment>We are having some problems with the Tracker. It will not install via the Windows Automatic Install Service. </tlp:Comment> <tlp:Status>1</tlp:Status> <tlp:Created>2008-01-07T00:00:00</tlp:Created> <tlp:CreatedBy>SOX</tlp:CreatedBy> <tlp:DeadlineDate>2008-02-06T00:00:00</tlp:DeadlineDate> <tlp:ClosedDate>2008-03-06T00:00:00</tlp:ClosedDate> <tlp:RegHours>0.050000</tlp:RegHours> <tlp:InvHours>0.050000</tlp:InvHours> <tlp:CostAmount>14</tlp:CostAmount> <tlp:RegAmount>42</tlp:RegAmount> <tlp:InvAmount>42</tlp:InvAmount> <tlp:EmployeeID>17</tlp:EmployeeID> <tlp:EmployeeInitials>ARP</tlp:EmployeeInitials> <tlp:EmployeeFullName>Anders Pettersson</tlp:EmployeeFullName> <tlp:CustomerID>940</tlp:CustomerID> <tlp:CustomerName>Google Inc</tlp:CustomerName> <tlp:CustomerNo>04.0755</tlp:CustomerNo> <tlp:ContactID>5669</tlp:ContactID> <tlp:ContactFullName>John Doe</tlp:ContactFullName> <tlp:SupportContractID>270</tlp:SupportContractID> <tlp:SupportContractNo>A08.0053</tlp:SupportContractNo> <tlp:SupportTypeID>3</tlp:SupportTypeID> <tlp:SupportTypeName>A.10 Time/Expense Tracking</tlp:SupportTypeName> <tlp:DepartmentNameID>25</tlp:DepartmentNameID> <tlp:DepartmentName>R&D</tlp:DepartmentName> <tlp:LastChange>2008-02-16T00:00:00</tlp:LastChange> <tlp:LastChangeDays>4</tlp:LastChangeDays> <tlp:LastChangeHours>96</tlp:LastChangeHours> </tlp:SupportCase> <tlp:SupportCase ID="1816"> <tlp:Header>TEST</tlp:Header> <tlp:No>S08.0193</tlp:No> <tlp:Comment>Testing</tlp:Comment> <tlp:Status>1</tlp:Status> <tlp:Created>2008-01-07T00:00:00</tlp:Created> <tlp:CreatedBy>SOX</tlp:CreatedBy> <tlp:DeadlineDate>2008-02-07T00:00:00</tlp:DeadlineDate> <tlp:DeadlineTime></tlp:DeadlineTime> <tlp:ClosedDate>2008-03-07T00:00:00</tlp:ClosedDate> <tlp:RegHours>0.000000</tlp:RegHours> <tlp:InvHours>0.000000</tlp:InvHours> <tlp:CostAmount>0</tlp:CostAmount> <tlp:RegAmount>0</tlp:RegAmount> <tlp:InvAmount>0</tlp:InvAmount> <tlp:EmployeeID>17</tlp:EmployeeID> <tlp:EmployeeInitials>ARP</tlp:EmployeeInitials> <tlp:EmployeeFullName>Anders Pettersson</tlp:EmployeeFullName> <tlp:CustomerID>2234</tlp:CustomerID> <tlp:CustomerName>Interresearch A/S</tlp:CustomerName> <tlp:CustomerNo>06.1566</tlp:CustomerNo> <tlp:ContactID>4353</tlp:ContactID> <tlp:ContactFullName>Ole Engele Nielsen</tlp:ContactFullName> <tlp:SupportContractID>216</tlp:SupportContractID> <tlp:SupportContractName>SLA (Support Requests)</tlp:SupportContractName> <tlp:SupportContractNo>A07.0033</tlp:SupportContractNo> <tlp:SupportTypeID>3</tlp:SupportTypeID> <tlp:SupportTypeName>A.10 Time/Expense Tracking</tlp:SupportTypeName> <tlp:DepartmentNameID>25</tlp:DepartmentNameID> <tlp:DepartmentName>R&D</tlp:DepartmentName> <tlp:LastChange>2008-02-16T00:00:00</tlp:LastChange> <tlp:LastChangeDays>4</tlp:LastChangeDays> <tlp:LastChangeHours>96</tlp:LastChangeHours> </tlp:SupportCase> </tlp:SupportCases>
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="SupportCases" > <xsd:complexType> <xsd:sequence> <xsd:element name="SupportCase" type="tlp:SupportCaseRaw_Type" minOccurs="0" maxOccurs="unbounded" /> </xsd:sequence> </xsd:complexType> <xsd:key name="SupportCase_Key"> <xsd:selector xpath=".//tlp:SupportCase" /> <xsd:field xpath="@ID" /> </xsd:key> </xsd:element> <xsd:complexType name="SupportCaseRaw_Type"> <xsd:sequence> <xsd:element name="Header" type="xsd:string" /> <xsd:element name="No" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="Comment" type="xsd:string" /> <xsd:element name="Status" type="xsd:byte" /> <xsd:element name="Created" type="xsd:dateTime" /> <xsd:element name="CreatedBy" type="xsd:string" /> <xsd:element name="DeadlineDate" type="xsd:dateTime" /> <xsd:element name="DeadlineTime" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="ClosedDate" type="xsd:dateTime" /> <xsd:element name="RegHours" type="xsd:decimal" minOccurs="0" maxOccurs="1" /> <xsd:element name="InvHours" type="xsd:decimal" minOccurs="0" maxOccurs="1" /> <xsd:element name="CostAmount" type="xsd:decimal" minOccurs="0" maxOccurs="1" /> <xsd:element name="RegAmount" type="xsd:decimal" minOccurs="0" maxOccurs="1" /> <xsd:element name="InvAmount" type="xsd:decimal" minOccurs="0" maxOccurs="1" /> <xsd:element name="EmployeeID" type="xsd:positiveInteger" /> <xsd:element name="EmployeeInitials" type="xsd:string" /> <xsd:element name="EmployeeFullName" type="xsd:string" /> <xsd:element name="CustomerID" type="xsd:positiveInteger" /> <xsd:element name="CustomerName" type="xsd:string" /> <xsd:element name="CustomerNo" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="ContactID" type="xsd:positiveInteger" /> <xsd:element name="ContactFullName" type="xsd:string" /> <xsd:element name="SupportContractID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" /> <xsd:element name="SupportContractName" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="SupportContractNo" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="SupportTypeID" type="xsd:positiveInteger" /> <xsd:element name="SupportTypeName" type="xsd:string" /> <xsd:element name="DepartmentNameID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" /> <xsd:element name="DepartmentName" type="xsd:string" minOccurs="0" maxOccurs="1" /> </xsd:sequence> <xsd:attribute name="ID" type="xsd:positiveInteger" use="required" /> </xsd:complexType> </xsd:schema>