The vehicle object contains information about a vehicle record.
Vehicles are typically bookable resources for services. They live in Resources > Vehicles, but under the hood they're member records so share attributes with other objects in People & Organizations.
Vehicles have contact information against them because newer smart trucks for business have cell phone numbers and email addresses built into their trip computers. Some customers email PDFs or send messages with information about jobs to trucks.
Members
Contacts, organizations, vehicles, venues, and users are all known as members in the database. Members have some shared attributes, along with attributes that are specific to that particular member type.
When you're checking a list of members, you can use the type object to determine what type of member you're working with.
For example, the participants object against an opportunity returns participant objects for any members who are participants on the opportunity. To print only users:
<ul>
{% for participant in order.participants %}
{% if participant.type == "Vehicle" %}
<li>{{ participant.name }}</li>
{% endif %}
{% endfor %}
</ul>
Document layouts
The vehicle object can be accessed in document layouts created against the following modules:
Member
From a vehicle record:
Opportunity
To print vehicles that are are bookable resources for service items:
Discussion templates
The vehicle object can be accessed in discussion templates created against the following modules:
Member
From a vehicle record:
Opportunity
To print vehicles that are are bookable resources for service items:
activities
Returns activity objects for the activities relating to a vehicle.