This lesson will cover the following topics:

02 | Setup

01 Getting Started

This tutorial covers file actions available for Titan Flow, including:

  • Document Merge
  • Document Generation
  • Convert to PDF

02 Setup

Two File variables were created: input_file and output_file.

configured file variables

An Email node was configured to send an email containing the output file

configured email node

For this specific demonstration, to invoke the Flow, a web project needs to be created. The web project should contain a file upload element and a button that will be used to trigger the flow.

example of a project setup

1. Select the button and click the Interactivity icon in the menu.

Button element with the menu displayed


2. Select the Start + icon, choose Flow as the node, and click Next.

On click action window with the add node screen overlayed

3. Use the dropdown to select your Flow, disable Run in the Background depending on whether you want your screen to freeze when the Flow is triggered, and add a custom message.

4. Click Next, enter a Tag name, and select Insert.


03 Merge Files

1. Navigate back to the Flow project. Click the Any + icon, choose Merge Files as the node, and click Next.

merge files node

2. Configure the following and click Next.

  • IDs - This can be left blank. 
  • Files - input_file
  • Map to - output_file
  • Output Format - PDF
  • You can give the merged file a custom or dynamic name and map it to a File variable.

merge files configuration

There is no reordering required for this process, so the Filer Order List step can be skipped.

3. Enter a tag name and click Insert.

4. Link the After Finish node to the Send Output email node by clicking and digging the cursor.

screenshot of a the configured merge documents flow

Save and Publish the project.

Navigate back to your Web project and click Preview. When files are added to the File Upload element and the button is clicked, the flow is invoked. All the uploaded files will be merged into one PDF document and a copy will be sent to the listed email address.

04 Convert to PDF

Before completing the following steps, delete the Merge Documents node.

1. Click the Any + icon, choose Convert to PDF as the node, and click Next.

Convert to PDF node

2. Configure the following and click Next.

  • File In - input_file
  • File Out - output_file

You can choose from a variety of options to further configure the document.

configuration for convert to pdf

3. Enter a tag name and click Insert.

4. Link the Convert to PDF node to the Send Output email node.

configured nodes

For the new configuration to reflect in the web project, the updated flow must be saved and published. When files are added to the File Upload element, the files will be converted to PDF and a copy will be sent to the listed email address.

05 Document Generation

Before completing the following steps, delete the Convert to PDF node.

1. Navigate to the Project Settings menu and select the Tools tab.

2. Click the Document Generation gear icon.

document generation option located under tools

3. Add your document to the upload window.

upload a document

4. You can choose to attach the document to an email, push the document to Salesforce, or choose both actions to run. For this example, we chose Email. Click Next.

configure project document generation settings

5. Click Add Variable.

document generation settings window

6. Add a Static variable and label it account_id. Click Apply.

static variables

7. Use the Record ID dropdown to select the account_id variable.

8. Use the Output Format dropdown to select the desired format - for example, PDF.

9. Use the Convert with to select your preferred program. We recommend using Titan 1.

document generation settings window

10. Click the email tab and add a Custom Name - for example, SF Generated File. Click Apply.

document generation settings window

Next, we will need to update the existing send email node. 

1. Drag and drop your cursor between the Any and Send Output Email node to create a link.

2. Double-click on the email node to edit it.

screenshot of configured node

3. Navigate to the Attachments tab and choose your uploaded template. Click Apply.

configuration email settings window

4. Click Next and Save.

Publish the new flow and navigate back to your web project.

A lookup was inserted into the web project and configured as an Account lookup.

lookup element inserted into a project

The button flow configuration was updated to match the account_id variable to the Lookup field value.


After an account is selected in the lookup and the Call Flow button is clicked, the flow is invoked and a copy will be sent to the listed email address.

screenshot of project preview

06 Got Feedback?

Additional Resources