Back to Service

Method Details for GetOpportunityStatusShortlist.

Gets a list of opportunity status

Definition

TimeLog.TLP.WebAppCode.Service.GetOpportunityStatusShortlist(System.String,System.String,System.String)

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password

Returns

A list of opportunity status objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:OpportunityStatus 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/OpportunityStatusShortlist.xsd">
  <tlp:OpportunityStatus ID="1499">
    <Name>Cancelled</Name>
    </tlp:OpportunityStatus>
</tlp:OpportunityStatus>

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="OpportunityStatus" >
		<xsd:complexStatus>
			<xsd:sequence>
				<xsd:element name="OpportunityStatus" type="tlp:OpportunityStatusRaw_Type" minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
		</xsd:complexStatus>
		<xsd:key name="OpportunityStatus_Key">
			<xsd:selector xpath=".//tlp:OpportunityStatus" />
			<xsd:field xpath="@ID" />
		</xsd:key>
	</xsd:element>

	<xsd:complexStatus name="OpportunityStatusRaw_Type">
		<xsd:sequence>
			<xsd:element name="Name" type="xsd:string" />
			</xsd:sequence>
		<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
	</xsd:complexStatus>

</xsd:schema>

Download the XSD