All Collections
Steps
Writer Steps
Text Template Writer Step
Text Template Writer Step

The Text Template Writer step uses handlebars to create a text file.

Praise Magidi avatar
Written by Praise Magidi
Updated over a week ago

Illustrated in the below image is a flow where the Record Generator source step is used to generate records. A Text Template Writer step is used to write text format records. The Combine step is used combine records into a single output, and a Run File destination step to deliver an output file that can be downloaded.

Adding a Text Template Writer Step

To add a Text Template Writer step in a flow, follow the below instructions:

1. Click on the highlighted icon as shown in the below image.

2. The below page will appear. Select or search for a Writer step to pull out the source data. Click on the Writer tab and select Text Template as shown in the image below.

Configuring a Text Template Writer Step

Illustrated in the below image is the configuration that is available in the Text Template Writer step. There are separate sections that are similar where the output TXT file is configured.

Header Template section – Text template for the header

Record Header Template section – Text template for the header per record

Record Template section – Text template for the record

Record Footer Template section – Text template for the footer per record

Footer Template section – Text template for the footer

Using a Text Template Writer Step

The image below shows data in the Record Generator step.

To use a Text Template Writer step, configure the desired sections in the step. The image below shows the syntax that is used to pass the Assignee records in the Record Template section. The records are not required to be filled for the Text Writer step to convert to a TXT file. Once the configuration is done, follow these steps:

The Run File step is shown below. The File Type has been selected as Txt.

Viewing the created Text file

1. Click the Execute Flow button shown in the image below:

2. Click the Create Run button.

3. Once the run has completed successfully, click on the processed run and then click the download button on the Run File step to download the output file as highlighted in the image below.

The image below shows the TXT output file.

Did this answer your question?