Back to Service

Method Details for GetEventsRaw.

Gets a list of events


  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • eventID Integer ID of specific event. Set to 0 to get all events
  • eventTypeID Integer ID of specific eventType. Set to 0 to get all events
  • customerID Integer ID of specific customer. Set to 0 to get all events
  • employeeID Integer ID of the employee in charge of the event. Set to 0 to get all events
  • status Integer ID of the event status. Set to 0 to get all. Planned = 1, Postponed = 2, Finished = 3, Cancelled = 4
  • startDate String Limits result to events with date on or later than this date
  • endDate String Limits result to events with date on or prior to this date


A list of events objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:Events xmlns:tlp=""
  <tlp:Event ID="1">
    <tlp:OpportunitySubject>Hello World</tlp:OpportunitySubject>
    <tlp:Subject>Presentation of version 2.6</tlp:Subject>
    <tlp:Description>Goal to get a meeting</tlp:Description>

Result Schema

<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd=""
	<xsd:element name="EventTypes" >
				<xsd:element name="EventType" type="tlp:EventsRaw_Type" minOccurs="0" maxOccurs="unbounded" />
		<xsd:key name="Event_Key">
			<xsd:selector xpath=".//tlp:Event" />
			<xsd:field xpath="@ID" />

	<xsd:complexType name="EventTypesRaw_Type">
      <xsd:element name="EmployeeID" type="xsd:positiveInteger" minOccurs="1" maxOccurs="1" />
      <xsd:element name="CustomerID" type="xsd:positiveInteger" minOccurs="1" maxOccurs="1" />
      <xsd:element name="EventTypeID" type="xsd:positiveInteger" minOccurs="1" maxOccurs="1" />
      <xsd:element name="ContactID" type="xsd:positiveInteger" minOccurs="1" maxOccurs="1" />
      <xsd:element name="OpportunityID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
      <xsd:element name="OpportunitySubject" type="xsd:string" minOccurs="0" maxOccurs="1" />
      <xsd:element name="Subject" type="xsd:string" minOccurs="1" maxOccurs="1" />
      <xsd:element name="Description" type="xsd:string" minOccurs="1" maxOccurs="1" />
      <xsd:element name="Date" type="xsd:dateTime" minOccurs="1" maxOccurs="1" />
      <xsd:element name="Status" type="xsd:positiveInteger" minOccurs="1" maxOccurs="1" />
		<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />


Download the XSD