This lesson will cover the following topics:

02 | Variables
07 | Preview

01 Getting Started

This tutorial covers Salesforce Actions in Titan Flow.

For demonstration purposes, a ContactID will be received as the flow input, an image associated with that contact will be found, the image will then be compressed and reuploaded to the same contact, and finally, the original image will be deleted.

02 Variables

Create the following Variables: 

  • Static: contact_id and file_id

Static variables

  • Files: input_file and output_file
Files variables

03 Salesforce Get Action

1. Select the Any + icon, choose Salesforce Action as the node, and click Next.

Chose Salesforce Action as the node

2. Click the Salesforce Integration button.

Salesforce Integration

3. In the Get Records tab, click Create New.

Create new Salesforce get record

4. In the Object Settings tab configure; Content Version as the Salesforce Object, User Action as the Trigger, add a description, and choose how many records to pull.

Map Salesforce fields object settings tab

5. In the Conditions tab the following three conditions were configured: the First Publish Location ID equals the contact_id variable, Is Latest equals True, and the Title contains a specific phrase - for example, Compress me.

Map Salesforce Fields Conditions tab

6. In the Mapping tab, map the input_file variable to Version Data, and the output_file variable to Content Document. Click Apply and Close the Salesforce Integration window.

map Salesforce fields > mapping tab

7. Use the dropdown to select the created Get Record action and click Next.

Chosen Salesforce action

8. Enter a Tag and click Insert.

04 Image Compression

1. Select the After Finish + icon, choose Image Compression as the node, and click Next.

Add image compression node

2. Configure the following and click Next.

  • File In - input_file
  • Quality - Static/50
  • File Out - output_file

Image compression configuration

3. Enter a Tag and click Insert.

05 Salesforce Push Actions

1. Select the Image Compression + icon, choose Salesforce Action as the node, and click Next.

2. Click the Salesforce Integration button. Two new Salesforce push actions will be configured below.

For the first push configure the following:

  • Object Settings: Files as the Salesforce Object, Create as the Action, and add a description.
  • Mapping: Version Data - output_file and First Publish Location ID - contact_id. You can choose to map a title if required.

For the second push configure the following:

  • Object Settings: Content Document as the Salesforce Object, Delete as the Action, and add a description.
  • Conditions: ContentDocumentID equals the file_id variable.

3. In the Integration Action window, use the dropdowns to select both push actions and enable Parallel Load. Click Next.

Two configured pushes

4. Add a Tag and click Insert.

Your flow should display as follows. Once the configuration is complete, Save and Publish the Flow.

preview of configured flow

06 Invoking the Flow

A web project was created with a Lookup field configured to search Contacts and a button. The button was configured to invoke the created flow when clicked.


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 Configure Parameters.

  • contact_id - field: Lookup Contact/Value

configure parameters window


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

07 Preview

When a contact is looked up in Salesforce, a file meeting the set conditions will be compressed and reuploaded to Salesforce. The original file will also be deleted.

project preview showing salesforce actions configuration

08 Got Feedback?

Additional Resources