Task Types
This article covers Task types
Task now have a new field called type
associated with it. Type allows more functionality and flexibility such as End Route at. When creating Task, type
will supersede pickupTask
and will throw an error if the fields do not match up. The following Table explains what each field represents:
Value | Description |
---|---|
0 | Pickup Task. This represents pickupTask is true. |
1 | Dropoff Task. This represents pickupTask is false |
2 | End at Hub Task. This represents an End at Hub Task, will require the associated Team/Hub to have a validate address Object. |
3 | End at Driver's Address Task. This represents an End at Driver Task, will require the associated Drivers to have a validate address Object attached. |
End at Tasks
In the sidebar and map view, the ‘End at Last Task’/ Driver’s Location is not an actual task in the database. Instead these are virtual tasks only displayed in the sidebar and map as informational indicators to Dispatchers/ Monitors. The task is not recorded in the database nor displayed to drivers.
{
"destination": {
"address": {
"unparsed": "Petco Park"
},
"notes": ""
},
"recipients": [],
"type":0
}
Please note that pickupTask
is true and type
is 0
{
"id": "FHtZtBtReQWsG1mZXvq9lqe3",
"timeCreated": 1744069739000,
"timeLastModified": 1744069739290,
"organization": "nYrkNP6jZMSKgBwG9qG7ci3J",
"shortId": "d37b1822",
"orderShortId": null,
"trackingURL": "https://onf.lt/d37b1822",
"worker": "ZxcnkJi~79nonYaMTQ960Mg2",
"merchant": "nYrkNP6jZMSKgBwG9qG7ci3J",
"executor": "nYrkNP6jZMSKgBwG9qG7ci3J",
"creator": "vjw*RDMKDljKVDve1Vtcplgu",
"dependencies": [],
"state": 1,
"completeAfter": null,
"completeBefore": null,
"pickupTask": true,
"type": 0,
"notes": "",
"completionDetails": {
"failureNotes": "",
"successNotes": "",
"failureReason": "NONE",
"events": [],
"actions": [],
"time": null,
"signatureUploadId": null,
"photoUploadId": null,
"photoUploadIds": null,
"firstLocation": [],
"lastLocation": [],
"unavailableAttachments": []
},
"feedback": [],
"metadata": [],
"overrides": {},
"quantity": 0,
"additionalQuantities": {
"quantityA": 0,
"quantityB": 0,
"quantityC": 0
},
"serviceTime": 0,
"identity": {
"failedScanCount": 0,
"checksum": null
},
"appearance": {
"triangleColor": null
},
"scanOnlyRequiredBarcodes": false,
"customFields": [],
"container": {
"type": "WORKER",
"worker": "ZxcnkJi~79nonYaMTQ960Mg2"
},
"trackingViewed": false,
"recipients": [],
"destination": {
"id": "Fyl~dhVI57~oUgG~ntxR7FiV",
"timeCreated": 1744069739000,
"timeLastModified": 1744069739226,
"location": [
-117.1570422,
32.7075941
],
"address": {
"number": "100",
"street": "Park Boulevard",
"city": "San Diego",
"state": "California",
"postalCode": "92101",
"country": "United States",
"apartment": ""
},
"notes": "",
"metadata": [],
"googlePlaceId": "ChIJ7fMsvKtU2YARXM4yStBv8rU",
"warnings": [
"MISMATCH_NUMBER"
],
"useGPS": false
}
}