---
schema_version: "1"
id: a38a8b3816cf796d710f962673b2f3e7bd1bd33de0a3d5b6bd3ce17785f9d83a
title: VehicleUserAssignment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_vehicleuserassignment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_vehicleuserassignment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b88f1803da140b8ae52986a1b7090bd3893ae7004f4a0f4e6303786560f1baff
description: Represents the assignment of a vehicle to a driver. Vehicle is a moving location. This object is available in API version 51.0 and later.
---
# VehicleUserAssignment

Represents the assignment of a vehicle to a driver. Vehicle is a moving location. This object is available in API version 51.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### ActualEndDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The actual end time of the assignment.

### ActualStartDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The actual start time of a driver's association with a vehicle.

### DriverId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The ID of the driver.

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user referenced this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user viewed this record.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Name of the association.

### PlannedEndDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The planned end time of a driver's association with a vehicle.

### PlannedStartDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Sort, Update
- **Description**: The planned start time of a driver's association with a vehicle.

### Status

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: The status of a vehicle assignment.
- **Possible values**:
    - Assigned
    - Completed
    - InProgress

### VehicleId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The ID of the van.

## Associated Objects

This object has the following associated objects. Unless noted, they’re available in the same API version as this object.

- **[VehicleUserAssignmentFeed](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")**: Feed is available for the object.
- **[VehicleUserAssignmentHistory](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")**: History is available for the object.