---
schema_version: "1"
id: 10acc90113e397e0947f85f89c51dfe0adfccda8fd2a1c46c0d8ceab1fe9e2e8
title: Fleet
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/automotive_cloud/sforce_api_objects_fleet.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.automotive_cloud.meta/automotive_cloud/sforce_api_objects_fleet.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e63c0bca8e42c6437b7ff985df4e363ce0d446312b9c2610585c2b1d2960d75e
description: Represents a group of assets or vehicles used in commercial or transport operations. This object is available in API version 59.0 and later.
---
# Fleet

Represents a group of assets or vehicles used in commercial or transport operations. This object is available in API version 59.0 and later.

## Supported Calls

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

## Fields

### ActiveAssetCount

- **Type**: int
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The total number of assets associated with a fleet record. This field shows a rolled-up value based on the number of Fleet Asset records in Active status associated with a Fleet record. This field is a calculated field.

### CurrentOwnerId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The current owner of the fleet. This field is a relationship field.
- **Relationship Name**: CurrentOwner
- **Relationship Type**: Lookup
- **Refers To**: Account

### EffectiveEndDate

- **Type**: date
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The date until when a fleet is operational.

### EffectiveStartDate

- **Type**: date
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The date from when a fleet is operational.

### 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.

### LocationId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The ID of the location that the fleet is associated with.

### Name

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: The name of a fleet record.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: The ID of the user or user group who owns this record. This field is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Relationship Type**: Lookup
- **Refers To**: Group, User

### ParentFleetId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The parent fleet that a fleet record is part of in a hierarchy. This field is a relationship field.
- **Relationship Name**: ParentFleet
- **Relationship Type**: Lookup
- **Refers To**: Fleet

### Status

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Specifies the status of a fleet record. Possible values are: The default value is Active. Active, or Inactive.

### Type

- **Type**: picklist
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The type of a fleet record. Possible values are: Commercial, Employee, Executive, or Material.

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

- [FleetChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_change_event.htm): Change events are available for the object.
- [FleetFeed](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_feed.htm): Feed tracking is available for the object.
- [FleetHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_history.htm): History is available for tracked fields of the object.
- [FleetOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_ownersharingrule.htm): Sharing rules are available for the object.
- [FleetShare](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_share.htm): Sharing is available for the object.