Back to Service

Method Details for GetSubOpportunitiesRaw.

Gets a list of sub-opportinities

Definition

TimeLog.TLP.WebAppCode.Service.GetSubOpportunitiesRaw(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

Returns

A list of sub-opportunity objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:SubOpportunities xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4">
  <tlp:SubOpportunity ID="3">
    <tlp:OpportunityID>1</tlp:OpportunityID>
    <tlp:OpportunitySubject>Project management course</tlp:OpportunitySubject>
    <tlp:Name>Startup project</tlp:Name>
    <tlp:OpportunityTypeID>1</tlp:OpportunityTypeID>
    <tlp:OpportunityTypeName>Consultancy</tlp:OpportunityTypeName>
    <tlp:OpportunityStatusID>5</tlp:OpportunityStatusID>
    <tlp:OpportunityStatusName>Order received</tlp:OpportunityStatusName>
    <tlp:ForecastAmount>4.800000000000000e+004</tlp:ForecastAmount>
    <tlp:ForecastRate>100</tlp:ForecastRate>
    <tlp:Date>2017-03-15T00:00:00</tlp:Date>
    <tlp:Created>2016-12-09T16:53:14</tlp:Created>
    <tlp:Createdby>373</tlp:Createdby>
    <tlp:LastModified>2017-01-20T10:15:07</tlp:LastModified>
    <tlp:LastModifiedBy>373</tlp:LastModifiedBy>
  </tlp:SubOpportunity>
</tlp:SubOpportunities>

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="SubOpportunities" >
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="SubOpportunity" type="tlp:SubOpportunitiesRaw_Type" minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
		</xsd:complexType>
		<xsd:key name="SubOpportunity_Key">
			<xsd:selector xpath=".//tlp:SubOpportunity" />
			<xsd:field xpath="@ID" />
		</xsd:key>
	</xsd:element>

	<xsd:complexType name="SubOpportunitiesRaw_Type">
		<xsd:sequence>
      <xsd:element name="OpportunityID" type="xsd:positiveInteger" />
      <xsd:element name="OpportunitySubject" type="xsd:string" />
      <xsd:element name="Name" type="xsd:string" />
			<xsd:element name="OpportunityTypeID" type="xsd:positiveInteger" />
			<xsd:element name="OpportunityTypeName" type="xsd:string" />
			<xsd:element name="OpportunityStatusID" type="xsd:positiveInteger" />
			<xsd:element name="OpportunityStatusName" type="xsd:string" />
      <xsd:element name="ForecastAmount" type="xsd:decimal" />
      <xsd:element name="ForecastRate" type="xsd:decimal" />
      <xsd:element name="Date" type="xsd:dateTime" />
      <xsd:element name="Created" type="xsd:dateTime" />
      <xsd:element name="Createdby" type="xsd:positiveInteger" />
      <xsd:element name="LastModified" type="xsd:dateTime" />
      <xsd:element name="LastModifiedBy" type="xsd:positiveInteger" />
      </xsd:sequence>
		<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
	</xsd:complexType>

</xsd:schema>

Download the XSD