This lesson will cover the following topics:

04 | Condition

01 Getting Started

This tutorial will cover how to download a file.

Make sure that there is a file attached to the Salesforce object.

Screenshot showing the file upload element in Salesforce

02 Configuring Download File

1. Click the + icon to open the element list.

2. Under Input, drag and drop a text field element to the canvas.

3. Under Input, drag and drop an email element to the canvas.

4. Under Buttons, drag-and-drop a button to the canvas.

Screenshot showing the example project

03 Custom Variable

1. Click the Gear icon to open the project Settings screen.

2. Under Tools, click the Custom Variable option’s Gear icon.

Screenshot of Titan project settings

3. Under Static, add a custom variable called “contactid”.

4. Click the Kebab icon and select the Map to URL checkbox.

5. Add another variable called “hash”.

Screenshot of Custom Variables window showing the Static tab

6. Click the Apply button.

04 Condition

1. Click the Gear icon to open the project Settings screen.

2. Under Tools, click the Custom Variable option’s Gear icon.

Screenshot of Titan project settings menu

3. Under Conditions, double-click the Condition node. The Edit Node screen opens.

Screenshot of the Custom Variables window showing the Conditions tab

4. Configure the rule:
  •  [GV/contactid] Is not empty
Screenshot of edit node window showing condition configuration

5. Click the Next button.

6. Add a tag if necessary and click the Save button.

7. Hover over the Condition node with your mouse and click the + icon. The Add Node screen opens.

Screenshot of Custom Variables window showing Conditions tab

8. Click the Salesforce Action option and click the Next button.

Screenshot of Add Node showing selected Salesforce Action

9. Use the Process push or get dropdown list to select the Salesforce integration. Click the Next button.

Screenshot of Add Node Salesforce Action window showing selected action

10. Add a tag if necessary and click the Insert button. The Salesforce Action is added to the screen. Click the Apply button.

Screenshot of the Custom Variables window displaying the Conditions tab

11. Click the Publish button. The webpage opens in a new tab.

12. Open Salesforce and copy the contact ID from the URL bar.

Screenshot of the Salesforce URL bar

13. In the URL bar of the published project, add the following:
  • ?contactid=
14. Paste the contact ID after the equal sign and press the Enter key on the keyboard.

The contact name is returned to the Full Name text field and the email address is to the Email element.

Screenshot of user details page

When the button is clicked, the file/s are downloaded.

Screenshot of download files screen example

05 Hash Value

1. To view the hash value, open the Project Settings.

2. Make sure that the Debug option under Tools is on.

Screenshot of the Titan project settings


3. Click the Preview button. 4. Open Salesforce and copy the contact ID from the URL bar.

Screenshot showing the Salesforce URL bar

5. In the URL bar of the previewed project, delete the “device=lg” and add the following:
  • ?contactid=
6. Paste the contact ID after the equal sign and press the Enter key on the keyboard.

7. Click the Debug button. The Debug project screen opens.

8. Hover with your mouse pointer over the hash value. The hash value for every file is displayed.

Screenshot of the debug project window

06 Salesforce Integration

1. Click the Gear icon to open the Project Settings and click the Salesforce option. The Salesforce Integration screen opens.

2. Click the Create New button. The Map Salesforce fields screen opens.

Screenshot showing how to navigate to the Salesforce Integration window

3. Under Object Settings, use the drop-down list to select the Salesforce object.

4. Use the drop-down list to select the trigger to execute the pull.

Screenshot of Map Salesforce Fields showing the Object Settings tab

5. Click the Conditions option and configure the condition using the drop-down lists. The Field value is the static variable you added.

Screenshot of Map Salesforce Fields showing the Conditions tab

6. Click the Mapping option and use the drop-down list to map the Full name and the Email to the elements.

Screenshot of Map Salesforce Fields showing the Mapping tab

7. Click the Apply button. The Salesforce integration has been added.

8. Click the Kebab icon and select the Add Child option. The Map Salesforce field screen opens.

Screenshot of Salesforce Integration window showing how to add a child push

9. Under Object Settings, use the drop-down list to select the Content Version Salesforce object.

10. Select the Up to Radio button and add 10 in the records field.

Screenshot of Map Salesforce Fields showing the Object Settings tab

11. Under Conditions, configure the conditions. The First Published Location ID must equal the Contact ID.

Screenshot of Map Salesforce Fields showing the Conditions tab

12. Click the Mapping option and use the drop-down list to map the field as follows:
  • [GV/hash] to Hash Value
Screenshot of Map Salesforce Fields showing the Mapping tab

13. Click the Apply button. The child integration is added. Click the Close button.

Screenshot of Salesforce Integration window showing a clustered push

07 Got Feedback?

Additional Resources