Trigger Titan Flow from Salesforce Flow

Business Background

Salesforce Flow provides robust automation tools, but it has limitations when it comes to handling complex document processes, third-party integrations, and data management across different environments. Without extended capabilities, teams face manual workarounds, increased development effort, and reduced agility. Integrating Titan Flow addresses these challenges by enabling no-code automation for advanced workflows, bringing greater flexibility, efficiency, and scalability to business operations.

Titan Solution

Titan extends the power of Salesforce Flow by providing a no-code platform that eliminates the need for custom development and manual workarounds. With Titan Flow, users can automate complex tasks directly from Salesforce triggers, such as document generation, merging, integration with third-party systems, and cross-environment data sharing. 

This solves key business challenges by reducing development time, improving process efficiency, and enabling teams to build and scale advanced workflows with ease. Titan empowers organizations to move faster, innovate without code, and fully leverage their Salesforce investment.

Also, learn how to Send Parameters from a Salesforce Flow to a Titan Flow.

How to Guide

In this example, the documents on a contact will be merged when a checkbox on the record in Salesforce is enabled. The checkbox was added as a custom field on the object.

Custom checkbox
Custom checkbox

Prerequisites

  1. On the Titan Dashboard, click the New Project button.
  2. Select the Flow project type and click the Next button.
  3. Type a name for the flow and click the Let’s Go! button.
  4. Click the Gear icon to open the Project Settings and select the Tools option.
  5. Click the Gear icon next to the Custom Variables option.
  6. Add a static variable. This variable will be used to hold the record IDs of the appropriate Salesforce File records.
Custom Variables screen
Custom Variables screen
  1. Add a files variable. This variable will be used to hold the final merged file output.
Custom Variables screen
Custom Variables screen

Configure a Flow in Titan

Configure a Salesforce Get

This Salesforce Get will bring all the documents linked to a recordID.

  1. Click the + icon to add a node.
Titan Flow
Titan Flow
  1. Select the Salesforce Action node and click the Next button.
Salesforce Action node
Salesforce Action node
  1. Click the Salesforce Integration button.
Add Node/Salesforce Action screen
Add Node/Salesforce Action screen
  1. Click the Create New button to create a Salesforce Get.
Salesforce Integration screen
Salesforce Integration screen
  1. Use the drop-down list to select the object in Salesforce. For this example, select the Content Document Link object.
    • The trigger to execute the pull is added by default.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Under Condition, set the condition as follows:
    • Linked Entity ID equals the Record ID. This will filter for file records that are linked to the Salesforce Record ID of the Contact record that initiates the flow.
  2. Click the Apply button.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Click the Kebab icon and select the Add Child option.
Add Child option
Add Child option
  1. Use the drop-down list to select the Content Version object in Salesforce.
  2. Set the number of records to be returned to a large value, such as 100.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Under Condition, use the drop-down lists to set the conditions as follows to return a list of the latest versions of all files that are contained in the file links from the first Get:
    • ContentDocumentID IN #1 parent query – ContentDocumentID
    • AND
    • This will return a list of the latest versions of all files that are contained in the file links from the first GET.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Under Mapping, use the drop-down list to map the files variable that you created earlier to the ContentVersionID field.
  2. Click the Apply button.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Click the Close button.
Salesforce Integration screen
Salesforce Integration screen
  1. Use the drop-down list to select the Get and click the Next button.
Add Node/Salesforce Action screen
Add Node/Salesforce Action screen
  1. If necessary, change the tag and click the Insert button. The Salesforce Action node is added to the flow.

Configure a Merge Files node

This node will merge the different files that the Salesforce Get brought back.

  1. Click the + icon to add a node.
Titan Flow
Titan Flow
  1. Under Action, click the Merge File option and click the Next button.
Merge Files option
Merge Files option
  1. Use the drop-down lists and select the variables.
  2. Type a custom name in the field.
Add Node/Merge Files screen
Add Node/Merge Files screen
  1. Click the Next button.
Add Node/Merge Files screen
Add Node/Merge Files screen
  1. If necessary, change the tag and click the Insert button. The Merge Files node is added to the flow.

Configure a Salesforce Push

This Push will return the merged file to the Salesforce object using the recordID.

  1. Click the + icon to add a node.
Titan Flow
Titan Flow
  1. Select the Salesforce Action node and click the Next button.
Salesforce Action option
Salesforce Action option
  1. Click the Salesforce Integration button.
Add Node/Salesforce Action screen
Add Node/Salesforce Action screen
  1. Select the Push option and click the Create New button.
Salesforce Integration screen
Salesforce Integration screen
  1. Use the drop-down list to select the object in Salesforce. For this example, select the Content Version.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Under Mapping, use the drop-down lists to map the following fields. This will attach the merged files to the Contact record in Salesforce where the flow was initiated.
  2. Click the Apply button.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Click the Close button.
Salesforce Integration screen
Salesforce Integration screen
  1. Use the drop-down list to select the push and click the Next button.
Add Node/Salesforce Action screen
Add Node/Salesforce Action screen
  1. If necessary, change the tag and click the Insert button. The Salesforce Action node is added to the flow.
Titan Flow
Titan Flow
  1. Click the Save and Publish buttons.
  2. Select the Publish Mode radio button.
  3. Take note of the ftFormHash. You will need this for the Salesforce Flow.
Publish Project
Publish Project

Configure a Flow in Salesforce

  1. Click the Gear icon to open the Setup Menu and click the Setup option.
Setup Menu
Setup Menu
  1. Search for “flows” and select the Flows option.
  2. Click the New Flow button.
Flows option
Flows option
  1. Select the Start from Scratch option and click the Next button.
New Flow screen
New Flow screen
  1. Select an option. In this example, a record-triggered flow was selected.
  2. Click the Create button.
Select Type screen
Select Type screen
  1. Use the drop-down list to select the object.
  2. Select the relevant Configure Trigger radio button.
  3. Add a condition that the merged file field equals true.
  4. Click the Save button.
Configure Start screen
Configure Start screen
  1. Click the + icon to add an element and select the Action option from the list.
Add Action Element
Add Action Element
  1. Search for “flow” and select the Form Builder TitanFlow option.
Action screen
Action screen
  1. Type a label for the action. The API name is added automatically.
  2. Paste the ftFormHash from the Titan Flow project in the field.
  3. Select the recordID.
  4. Click the Save button.
Form Builder TitanFlow screen
Form Builder TitanFlow screen
  1. Type a flow label. The Flow API Name field is added automatically.
  2. Add a description if necessary.
  3. Click the Save button.
Save the flow screen
Save the flow screen
  1. Click the Activate button.
Activate button
Activate button

Trigger an Action in Salesforce

  1. Click the Edit icon next to the Merge Files custom checkbox on the record.
Merge Files custom checkbox
Merge Files custom checkbox
  1. Click in the Merge Files checkbox to enable it.
  2. Click the Save button. The checkbox is cleared, and this action triggers the Salesforce Flow.
Merge Files custom checkbox
Merge Files custom checkbox
  1. Browse to the Titan project.
  2. Click the Gear icon to open the Project settings.
Titan Flow
Titan Flow
  1. Click the Salesforce option.
Salesforce option
Salesforce option
  1. Click the Integration Logs option. Here you will see all the integration logs.
Integration Logs
Integration Logs

Hidden Title

Need more help?

Titan logo
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.