Welcome to Zuora Product Documentation

Explore our rich library of product information

Liquid expressions in Workflow

Introduces Liquid expressions and provides example expressions that can be used to filter and transform data in Workflow.

Liquid is an open-source template language created by Shopify. Liquid uses a combination of objects, tags, and filters inside template files to display dynamic content. You can use Liquid Auto-Complete. You can use the type-ahead functionality during your task development experience as well as while using the Liquid Tester. The autocomplete feature allows you to type in Liquid tags as you normally would, and the system will automatically use the drop-down menu of options to either scroll through and click the tag of your choice or highlight and press the tab key. Furthermore, if you are using Liquid functions, you can type the vertical bar | and see a menu of functions, with hints and outputs visible when hovering.

  • Object: Contain the content that Liquid displays on a page. To output an object's property, wrap the object name in {{ and }} .

  • Tag: Create the logic and control flow for templates. Tags are wrapped in: {% %} characters. An object inside a tag does not need brackets.

  • Filter: Modify the output of a Liquid object or variable. Filters are placed within an output tag {{ }} and are denoted by a pipe character | .

Here is an example. For details about objects, filters, tags, and other tips for Liquid, see Liquid basics and Liquid reference.

Workflow Liquid example

You can use Liquid expressions in Zuora Workflow tasks, including the task name, to filter and transform data. The following examples provided in this article can be used as references. The sample outputs are provided in the comments {% comment %} {% endcomment %} .

The version of Liquid used in Workflow is 5.0.1.

Other resources