Vehicle->CreateVehicleGroup
CreateVehicleGroup (Vehicle Function)
This function creates a vehicle group with the specified name. If a depot name is specified then it assigns the newly created vehicle group to the specified depot. If depot name specified does not exist then the function will fail with an error message.
XML Request
The CreateVehicleGroup function takes the following request parameters:
Parameter | Type | Description | Mandatory/Optional | If you have to specify a default value |
---|---|---|---|---|
GroupName | String | Name of the vehicle group that needs to be created | Mandatory | NO DEFAULT |
DepotName | String | Name of the depot to which the above vehicle group need to be assigned. If nothing is specified or "null" is specified then the vehicle group is not assigned to any depot | Optional | "null" |
<soap:Body> <CreateVehicleGroup xmlns="http://www.qualcomm.com"> <CreateVehicleGroupRequest> <GroupName>string</GroupName> <DepotName>string</DepotName> </CreateVehicleGroupRequest> </CreateVehicleGroup> </soap:Body>
XML Response
The return result indicates success or failure via boolean value.
<soap:Body> <CreateVehicleGroupResponse xmlns="http://www.qualcomm.com"> <CreateVehicleGroupResult> <IsSuccess>boolean</IsSuccess> </CreateVehicleGroupResult> </CreateVehicleGroupResponse> </soap:Body>