Back to index

DeleteJob_v1

This method provides the ability to delete an Incab job by entering the Trip Id. The deletion will only be performed if the status of the trip is: created, delivered, read and started. For a trip status of started, The deletion will only be completed as long as the first stop in the job has only started. If the first stop status has gone to arrived (or further) the trip will not be deleted. Associated stops will be individually deleted based on current status.

Parameters:

[in] usn The user-name that you need to use to authenticate on this interface.
[in] pwd The password that you need to use to authenticate on this interface.
[in] itemID The item ID of the data item to be deleted.
[in] tripID INT parameter. This is the external customer TripID.
[out] errorMsg If an error happens this string contains the error message. In case an error has happened (this variable contains a valid non-empty string) then the return value will not contain any usable data, do not try to parse it as an xml.
return value If the errorMsg variable is null or empty then the returned string contains the requested data in xml format. The xml has the following structure:
<?xml version="1.0" encoding="utf-16"?>
<root>
  <EX_DeleteJob>
  <row VehicleID="6"
   VehicleName="007"
   TripID="10"
   DeletionTime="2019-04-11 14:57:28Z"
   JobStatus="s_deleted"
  </EX_DeleteJob>
</root>
Please note this.

Remarks

Minimum R-COM Database version

0.2805

Error messages

Please see this page.