Templates


# Templates

# Introduction

We have created a templating feature where you can compose different kinds of templates and populate them with data from CDS. There are currently 3 types of templates: Word (docx), Excel (xlsx) and Email. Getting into details of every template type, making and getting of them is different. Therefore we've made detailed instructions for each type.

# General idea

Regardless of differences in each template type, general logic is same. For now we'll take email templates for example. Let's say we need to send batch of emails to certain group of contacts

  1. You will make an email template by making new record where you will design actual email in out designer, declare its filters and language. In designer you can use liquid tags to allow template to recieve custom data.

Note

Check Shopify's docs (opens new window) to see what is possible to do with tags, but be aware that we are using DotLiquid (opens new window) and it doesn't have all Shopify's features implemented. To counter this, we have added DotLiquid.Extras (opens new window) filters, which should substitute missing functionalities.

  1. In your custom flow for sending emails, you will get template by calling child flow (in our case talxis_getemailtemplate) which retrieves template based on sent entity and record ID. If sent record satisfies criteria for one of the templates, that template will be returned.

  2. If you need to populate data inside of the template, you will do it by using custom connector actions (again in our case "Map To Liquid") which will populate tempate with data from CDS.

  3. After that you will have email ready for sending 😄

Note

Please check detailed descriptions for more info.