Vehicle
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:
{{ member.name }}Opportunity
To print vehicles that are are bookable resources for service items:
{% for item in order.services %}
{% if item.is_item? %}
{% for asset in item.assets %}
{% if asset.is_resource_stock? %}
{% if asset.resource.type == "Vehicle" %}
{{ asset.resource.name }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}Discussion templates
The vehicle object can be accessed in discussion templates created against the following modules:
Member
From a vehicle record:
{{ vehicle.name }}Opportunity
To print vehicles that are are bookable resources for service items:
{% for item in opportunity.services %}
{% if item.is_item? %}
{% for asset in item.assets %}
{% if asset.is_resource_stock? %}
{% if asset.resource.type == "Vehicle" %}
{{ asset.resource.name }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}activities
activitiesReturns activity objects for the activities relating to a vehicle.
Input
{% for activity in member.activities %}
{{ activity.subject }}
{% endif %}Output
Call to follow upattachments
attachmentsReturns attachment objects for attachments stored against a vehicle.
Input
{% for attachment in member.attachments %}
{{ attachment.attachment_url }}
{% endfor %}Output
https://s3.amazonaws.com/current-rms/f7b92d60-1421-0132-8004-0401207f6801/attachments/473/original/Ann_Veal.jpgdescription
descriptionReturns a vehicle's description.
Input
{{ member.description }}Output
Our little nipper, perfect for small gear.email
emailReturns the first work email address stored against a vehicle.
Input
{{ member.email }}Output
dennis@wolfcola.comemails
emailsReturns email objects for email addresses stored against a vehicle.
Input
{% for email in member.emails %}
{{ email.address }}
{% endfor %}Output
help@current-rms.comheight
heightReturns a vehicle's height.
Input
{{ member.height }}Output
100.0icon_url
icon_urlReturns a URL pointing at the vehicle's picture. The full size image is returned.
Input
{{ member.icon_url }}Output
https://s3.amazonaws.com/cobra-4934606a-294f-4fc2-bca1-2fd55ba5019c/icons/449/original/abigail.jpegimage_attachments
image_attachmentsReturns attachment objects for attachments stored against a vehicle. Only returns those that have a file type of image.
Input
{% for attachment in member.attachments %}
{{ attachment.attachment_url }}
{% endfor %}Output
https://s3.amazonaws.com/current-rms/f7b92d60-1421-0132-8004-0401207f6801/attachments/473/original/Ann_Veal.jpgid
idReturns a vehicle ID.
Input
{{ member.id }}Output
10length
lengthReturns a vehicle's length.
Input
{{ member.length }}Output
30.0location_type
location_type Returns a vehicle's location type ID.
Type
Location type
0
Internal
1
External
Input
{{ member.location_type }}Output
0location_type_name
location_type_nameReturns a vehicle's location type name.
Internal
External
Input
{{ member.location_type_name }}Output
Internalmobile
mobileReturns a vehicle's cell phone number. The first telephone number with the type “cell” or “mobile” is returned.
Input
{{ member.mobile }}Output
(756) 555 1939name
nameReturns a vehicle's name.
Input
{{ member.name }}Output
Ford Pickuppayload
payloadReturns a vehicle's maximum payload.
Input
{{ member.payload }}Output
700phones
phonesReturns telephone objects for telephone numbers stored against a vehicle.
Input
{% for telephone in member.phones %}
{{ telephone.number }}
{% endfor %}Output
(636) 555 0113plate
plateReturns a vehicle's licence plate.
Input
{{ member.plate }}Output
EXY-7946telephone
telephoneReturns a vehicle's telephone. The first telephone number with the type “work” is returned.
Input
{{ member.telephone }}Output
(636) 555 0113volume
volumeReturns a vehicle's volume.
Input
{{ member.volume }}Output
36.0width
widthReturns a vehicle's width.
Input
{{ member.width }}Output
100.0Last updated
Was this helpful?