Liquid syntax
  • Welcome
  • Introduction
    • What is Liquid syntax?
    • Liquid operators
    • Liquid objects
    • Liquid tags
    • Liquid filters
    • Best practices
  • Information
    • Attributes
    • Consolidation
    • Custom fields
    • Date filter reference
    • Deal pricing
    • Special items
  • PDF renderer
    • PDF document limitations
  • General
    • Address detail
    • Attachments
    • Company
    • Emails
    • Links
    • Phones
    • Store
  • Activity
    • Activity
  • Inventory Check
    • Inventory check (stock check)
    • Inventory check items (stock check items)
  • Invoices & Credits
    • Invoice
    • Invoice items
    • Invoice transactions
    • Invoice taxes
  • Opportunities
    • Opportunity
    • Opportunity items
    • Opportunity item assets
    • Opportunity item surcharges
    • Opportunity costs
    • Opportunity return item assets
    • Consolidated opportunity items
    • Consolidated opportunities
  • People & Organizations
    • Contact
    • Organization
    • User
    • Vehicle
    • Venue
  • Products
    • Product
    • Product group
    • Charging period
    • Product accessories
    • Product assets
    • Stock level
  • Project
    • Project
  • Purchase orders
    • Purchase order
    • Purchase order items
  • Quarantine
    • Quarantine
  • Service
    • Service
  • Testing & inspection
    • Inspection results
    • Inspection result tasks
Powered by GitBook
On this page
  • number
  • type_id
  • type_name

Was this helpful?

  1. General

Phones

The phones object contains information about telephone numbers for a record

You may add as many telephone number as you like when creating organization, contacts, users, vehicles, or venues.

Using the telephone object against the organization, contact, user, vehicle, or venue object will return the first work telephone number associated with the record. For example, from an opportunity document:

{{ customer.telephone }}

Use the phones object to return all email addresses.

{% for phone in customer.phones %}
  {{ phone.number }}
{% endfor %}

number

Returns telephone numbers stored against a record.

Input

{% for telephone in order.store.phones %}
  {{ telephone.number }}
{% endfor %}

Output

(636) 555 0113

type_id

Returns the telephone type ID.

The ID is an internal reference for a value entry. It's not exposed in our web interface.

ID

6001

Work

6002

Cell

6003

Fax

6004

Skype

6005

Home

Input

{% for telephone in order.store.phones %}
  {{ telephone.type_id }}
{% endfor %}

Output

6001

type_name

Returns the telephone type name.

  • Work

  • Cell

  • Fax

  • Skype

  • Home

Input

{% for telephone in order.store.phones %}
  {{ telephone.type_name }}
{% endfor %}

Output

Work
PreviousLinksNextStore

Last updated 4 years ago

Was this helpful?