Get Tasks

Request
Description Retrieves the list of territories the connected user has access to.
Context https://<instance>.optimizemyday.com/omdservices-basic/rest/v1/services/data
URL /getTasks
Method GET
Response Code 200 when successful, another HTTP status code otherwise
Success Response A document containing the list of planned or unplanned tasks.
Response Type XML or JSON
Parameter Datatype Description
configId Integer The identifier of the configuration.
planned Boolean Retrieve all planned tasks. If omitted, this parameter defaults to true.
unplanned Boolean Retrieve all unplanned tasks. If omitted, this parameter defaults to true.
_output String The requested output format being xml or json. If omitted, xml is assumed.

Sample Call

https://sandbox.optimizemyday.com/omdservices-basic/rest/v1/services/data/getTasks?configId=16167225&planned=true&unplanned=false

Sample Result

<Result success="true">
  <Task id="30291297" version="40" lastUpdate="2017-09-18 02:10:19" configuration="16167225" contractLine="0000100179-1-1" account="0000100179" externalId="0000100179-1-1-2017-05-11" name="Hanra Bantheck GmbH & Co. KG" taskType="VISIT" territory="104" street="Langer Steinschlag 6a" postalCode="23936" city="Grevesmühlen" country="DE" phone="+49388178140" geocode="0_0_11211280_53862968 1" earliest="2017-07-21 00:00:00" latest="2017-07-28 00:00:00" scheduledFor="10000032" scheduled="2017-09-21 11:37:17" status="IP" estimatedDuration="120.0" contractType="VISIT" taskGroupId="0000100179-1-1-2017-05-11" groupOffset="0" groupOffsetMargin="0" weight="0.0" volume="0.0" positionInTrip="1"/>
  <Task id="30291301" version="81" lastUpdate="2017-09-16 02:10:12" configuration="16167225" contractLine="0000100389-1-1" account="0000100389" externalId="0000100389-1-1-2017-05-11" name="SGBD Daatschlend GmbH" taskType="VISIT" territory="112" street="Wikingerstr. 1-3" postalCode="76189" city="Karlsruhe" country="DE" phone="+497215595106" geocode="0_0_8345990_49017239 1" earliest="2017-05-04 00:00:00" latest="2017-05-18 00:00:00" scheduledFor="10000030" scheduled="2017-09-19 14:32:35" status="IP" estimatedDuration="90.0" contractType="VISIT" taskGroupId="0000100389-1-2017-05-04-28" groupOffset="0" groupOffsetMargin="0" weight="0.0" volume="0.0" positionInTrip="3"/>
</Result>

results matching ""

    No results matching ""