This lesson will cover the following topics:

02 | The Setup

01 Getting Started

This tutorial explains how to utilize Titan Files for uploading files from various Salesforce objects into their respective repositories on Amazon S3.

With Titan Files, you have the capability to upload files to diverse cloud storage services, including Google Drive, Box, DropBox, Amazon S3, and FTP.

02 The Setup

1. Navigate to the Salesforce Setup window and search for Flows.

2. Select Flows under Process Automation and click New Flow.

Flow setup screen

3. Select Record-Triggered Flow and click Create.

New flow screen with Record - Triggered Flow highlighted

We will configure this flow to trigger whenever a new TFile record is created.

4. Configure the following:

  • Object - TFile
  • Trigger - A record is created.

5. Click the + icon located under your flow in the left-hand window.

flow configuration window

6. Search for the Decision element and select it.

This node will be used to differentiate which object the file was uploaded to.

adding a decision node

7. In the New Decision window, configure:

  • Label - Find File Object
  • Outcome Details Label - Accounts
  • Condition - Record > Parent Object Equals Account.

New decision window

8. Click the Outcome Order + icon and configure the following:

  • Label - Contacts
  • Condition - Record > Parent Object Equals Contact.

9. Click Done.

New decision configuration

03 File Action for Accounts and Contacts

The next step is to create a file action for Accounts and Contacts. Before continuing, Save and Label your flow.

screenshot of the configured flow

1. Click the + icon under Account.

Add node under account

2. Search for File Action and select the node.

screenshot showing how to add a file action node

3. Configuring the Apex action as follows:

  • Label - Upload Account Files to S3
  • Parent Object - Account

new apex action configuration

4. Click the Any + and select Amason S3 as the node. Click Next.

add an amazon S3 node to the titan file node

5. Click Authenticate to authenticate with your Amazon S3 account.

Authenticate amazon s3

6. Enter your security information and click Apply.

Enter amazon s3 keys

7. Once Authentication is completed click Next.

completed authentication screen

8. Configure the Amazon Node as required and click Next.

complete amazon S3 configuration

You can complete the same steps for your Contacts node. The only difference is that the parent object is now Contact.

completed configuration window

When you upload a file to a Salesforce Account or Contact, the file is automatically uploaded to Amazon S3.

04 Got Feedback?