Back to Service

Method Details for GetOpportunityTypesShortlist.

Gets a list of opportunityTypes

Definition

TimeLog.TLP.WebAppCode.Service.GetOpportunityTypesShortlist(System.String,System.String,System.String,System.Int32)

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • status Integer 0 for inactive opportunityTypes; 1 for active opportunityTypes; -1 for all opportunityTypes

Returns

A list of opportunityType objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:OpportunityTypes 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/OpportunityTypesShortlist.xsd">
  <tlp:OpportunityType ID="1499">
    <Name>Open workshop</Name>
    <IsActive>1</IsActive>
   </tlp:OpportunityType>
</tlp:OpportunityTypes>

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="OpportunityTypes" >
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="OpportunityType" type="tlp:OpportunityTypesRaw_Type" minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
		</xsd:complexType>
		<xsd:key name="OpportunityType_Key">
			<xsd:selector xpath=".//tlp:OpportunityType" />
			<xsd:field xpath="@ID" />
		</xsd:key>
	</xsd:element>

	<xsd:complexType name="OpportunityTypesRaw_Type">
		<xsd:sequence>
			<xsd:element name="Name" type="xsd:string" />
			<xsd:element name="IsActive" type="xsd:boolean" />
			</xsd:sequence>
		<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
	</xsd:complexType>

</xsd:schema>

Download the XSD