Method Details for GetOpportunitiesRaw.
Gets a list of opportunities
Parameters
- siteCode String Unique identification for your TimeLog account
- apiID String The API ID
- apiPassword String The API password
- opportunityID Integer ID of specific opportunity. Set to 0 to get all opportunities
- customerID Integer ID of specific customer. Set to 0 to get all opportunities
- ownerID Integer ID of the employee in charge of opportunity. Set to 0 to get all opportunities
- opportunityTypeID Integer ID of specific opportunityType. Set to 0 to get all opportunities
- barrierID Integer ID of specific barrier. Set to 0 to get all opportunities
- startDate String Limits result to opportunities with quotation date on or later than this date
- endDate String Limits result to opportunities with quotation date on or prior to this date
Returns
A list of opportunity objects in XML format
Result Example
<?xml version="1.0" encoding="utf-8"?>
<tlp:Opportunities xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4">
<tlp:Opportunity ID="1499">
<tlp:CustomerID>669</tlp:CustomerID>
<tlp:CustomerName>Volvo AB</tlp:CustomerName>
<tlp:ContactID>4</tlp:ContactID>
<tlp:ContactName>Karolina Nielson</tlp:ContactName>
<tlp:Subject>Project Management Course</tlp:Subject>
<tlp:OpportunityTypeID>1</tlp:OpportunityTypeID>
<tlp:OpportunityTypeName>Management</tlp:OpportunityTypeName>
<tlp:EmployeeID>373</tlp:EmployeeID>
<tlp:EmployeeName>Lars Olsen</tlp:EmployeeName>
<tlp:BarrierID>;3;</tlp:BarrierID>
<tlp:Potential>4.800000000000000e+004</tlp:Potential>
<tlp:ForecastRate>100</tlp:ForecastRate>
<tlp:Description>30 hours, April</tlp:Description>
<tlp:Created>2016-12-09T16:51:20</tlp:Created>
<tlp:Createdby>373</tlp:Createdby>
<tlp:LastModified>2017-01-20T10:15:06</tlp:LastModified>
<tlp:LastModifiedBy>373</tlp:LastModifiedBy>
<tlp:QuotationSent>2016-12-09T00:00:00</tlp:QuotationSent>
<tlp:Quotation></tlp:Quotation>
<tlp:CurrencyID>28</tlp:CurrencyID>
<tlp:CurrencyISOCode>SEK</tlp:CurrencyISOCode>
</tlp:Opportunity>
</tlp:Opportunities>
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="Opportunities" >
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Opportunity" type="tlp:OpportunitiesRaw_Type" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:key name="Opportunity_Key">
<xsd:selector xpath=".//tlp:Opportunity" />
<xsd:field xpath="@ID" />
</xsd:key>
</xsd:element>
<xsd:complexType name="OpportunitiesRaw_Type">
<xsd:sequence>
<xsd:element name="CustomerID" type="xsd:positiveInteger" />
<xsd:element name="CustomerName" type="xsd:string" />
<xsd:element name="ContactID" type="xsd:positiveInteger" />
<xsd:element name="ContactName" type="xsd:string" />
<xsd:element name="Subject" type="xsd:string" />
<xsd:element name="OpportunityTypeID" type="xsd:positiveInteger" />
<xsd:element name="OpportunityTypeName" type="xsd:string" />
<xsd:element name="EmployeeID" type="xsd:positiveInteger" />
<xsd:element name="EmployeeName" type="xsd:string" />
<xsd:element name="BarrierID" type="xsd:positiveInteger" />
<xsd:element name="Status" type="xsd:string" />
<xsd:element name="Potential" type="xsd:decimal" />
<xsd:element name="ForecastRate" type="xsd:decimal" />
<xsd:element name="Description" type="xsd:string" />
<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:element name="QuotationSent" type="xsd:string" />
<xsd:element name="Quotation" type="xsd:string" />
<xsd:element name="CurrencyID" type="xsd:positiveInteger" />
<xsd:element name="CurrencyISOCode" type="xsd:string" />
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
</xsd:complexType>
</xsd:schema>