Back to Service

Method Details for GetGroupUnitsRaw.

Get a list of group units

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • groupID Integer ID of specific group. Set to 0 to get all groups
  • customerID Integer ID of specific customer. Set to 0 to get for all customers
  • contactID Integer ID of specific contact. Set to 0 to get for all contacts
  • opportunityID Integer ID of specific Opportunity. Set to 0 to get for all opportunities

Returns

A list of group in standard XML document

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:GroupUnits xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4">
  <tlp:GroupUnit ID="1">
    <tlp:CustomerID>716</tlp:CustomerID>
    <tlp:GroupID>2</tlp:GroupID>
    <tlp:Value>Jason</tlp:Value>
  </tlp:GroupUnit>
  <tlp:GroupUnit ID="2">
    <tlp:CustomerID>716</tlp:CustomerID>
    <tlp:GroupID>1</tlp:GroupID>
    <tlp:ValueID>1</tlp:ValueID>
    <tlp:Value>Very good friend</tlp:Value>
  </tlp:GroupUnit>
  <tlp:GroupUnit ID="3">
    <tlp:ContactID>120</tlp:ContactID>
    <tlp:GroupID>3</tlp:GroupID>
    <tlp:ValueID>3</tlp:ValueID>
    <tlp:Value>Yes</tlp:Value>
  </tlp:GroupUnit>
</tlp:GroupUnits>

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="Groups" >
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="GroupUnit" type="tlp:GroupUnitsRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="Event_Key">
      <xsd:selector xpath=".//tlp:GroupUnit" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="GroupUnitsRaw_Type">
    <xsd:sequence>
      <xsd:element maxOccurs="unbounded" name="GroupUnit">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" name="ContactID" type="xsd:integer" />
            <xsd:element minOccurs="0" maxOccurs="1" name="CustomerID" type="xsd:integer" />
            <xsd:element name="GroupID" type="xsd:integer" />
            <xsd:element minOccurs="0" maxOccurs="1" name="ValueID" type="xsd:integer" />
            <xsd:element name="Value" type="xsd:string" />
          </xsd:sequence>
          <xsd:attribute name="ID" type="xsd:integer" use="required" />
        </xsd:complexType>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>

</xsd:schema>

Download the XSD