Method Details for GetProjectsShortList.
Gets a list of projects with key information only
Parameters
- siteCode String Unique identification for your TimeLog account
- apiID String The API ID
- apiPassword String The API password
- status Integer 0 for inactive projects; 1 for active projects; -2 for all projects
- customerID Integer ID of specific customer. Set to 0 to get all projects
- projectManagerID Integer ID of specific employee. Set to 0 to get all projects
Returns
A list of project objects in XML format
Result Example
<?xml version="1.0" encoding="utf-8"?> <tlp:Projects 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/ProjectsShortList.xsd"> <tlp:Project ID="265"> <tlp:Name>Startup</tlp:Name> <tlp:No>2004-0094</tlp:No> <tlp:Status>0</tlp:Status> </tlp:Project> <tlp:Project ID="309"> <tlp:Name>Website</tlp:Name> <tlp:No>2005-0006</tlp:No> <tlp:Status>0</tlp:Status> </tlp:Project> <tlp:Project ID="588"> <tlp:Name>TS_Onsite training</tlp:Name> <tlp:No>06.0161</tlp:No> <tlp:Status>0</tlp:Status> </tlp:Project> <tlp:Project ID="718"> <tlp:Name>TTP CRM new features/redesign</tlp:Name> <tlp:No>07.0062</tlp:No> <tlp:Status>1</tlp:Status> </tlp:Project> </tlp:Projects>
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="Projects"> <xsd:complexType> <xsd:sequence> <xsd:element name="Project" type="tlp:ProjectShort_Type" minOccurs="0" maxOccurs="unbounded" /> </xsd:sequence> </xsd:complexType> <xsd:key name="Project_Key"> <xsd:selector xpath=".//tlp:Project" /> <xsd:field xpath="@ID" /> </xsd:key> </xsd:element> <xsd:complexType name="ProjectShort_Type"> <xsd:sequence> <xsd:element name="Name" type="xsd:string" /> <xsd:element name="No" type="xsd:string" minOccurs="0" maxOccurs="1" /> <xsd:element name="Status" type="xsd:byte" /> </xsd:sequence> <xsd:attribute name="ID" type="xsd:positiveInteger" use="required"></xsd:attribute> </xsd:complexType> </xsd:schema>