Skip to main content

Liquid objects

Objects, or output markup (which may resolve to text) are surrounded by matched pairs of curly brackets.

Matthew James Finkel avatar
Written by Matthew James Finkel
Updated today

Objects let you output content from your Current RMS system into your document layouts. For example, the order object has an attribute called name that outputs the opportunity name.

Liquid Syntax is the mechanism used in Current RMS templates to dynamically access and display object attributes.

Which objects are available?

  • company
    attributes for your company

  • current_store
    attributes for the current store

  • organisation
    attributes for an organisation 

  • contact
    attributes for a contact

  • venue
    attributes for a venue

  • user
    attributes for a particular user

  • current_user
    attributes for the logged in user 

  • owner_user  
    attributes for the owner user

  • vehicle
    attributes for a particular vehicle

  • invoice
    attributes for an invoice

  • invoice.item  
    attributes for an invoice item

  • invoice.tax  
    attributes for an invoice tax record

  • project  
    attributes for a project

  • order  
    attributes for an opportunity

  • order.cost
    attributes for an opportunity cost

  • order.item
    attributes for an opportunity item

  • item.asset  
    attributes for an opportunity item asset

  • item.surcharge  
    attributes for opportunity item surcharge

  • item.charging_period  
    attributes for details of a rental charge held against a product or opportunity item

  • product  
    attributes for a product

  • service
    attributes for a service

  • stock_level  
    attributes for a product stock level

  • address  
    attributes for an address

  • activity  
    attributes for an activity

Where can I access objects?

Some objects can only be accessed in particular document layouts. For example, the invoice.items object can only be accessed from within an invoice document.

For details on how to access each object, see our list. For a more comprehensive guide to Liquid Syntax, visit the Current RMS - Liquid Syntax Documentation.

Example: Displaying the Name of the Opportunity

You can display the name of the opportunity within a discussion or invoice template using the following Liquid syntax:

{% assign order = invoice.sources.first %}

This snippet ensures that opportunity data is retrieved correctly and displayed within the template.

Common Use Cases

  1. Retrieving the Status of a Product: Use Liquid Syntax to dynamically include the 'status' of a product.

  2. Displaying Names and Attributes: Tailor your templates to fetch specific names or attributes for enhanced personalisation. These examples highlight practical applications of Liquid Syntax in accessing objects.

Global objects

These objects are available in all document layouts:

  • current_user 

  • owner_user 

  • company 

  • current_store 

Did this answer your question?