External Flow

Business Background

Collaborate with another company to share information using a Titan Flow.

Titan Solution

With Titan, you can invoke a flow from a different environment with different permissions.

How to Guide

In this example, the following Titan projects are used:

  • A Flow project in environment A (the source environment), where the external flow option has been activated.
  • A Flow project in environment B (the target environment), from where the external flow is triggered.
  • A Web project in environment B, with input fields to create a contact. This project has a button that triggers the Flow project in environment B.

Create an External Flow in Environment A

  1. Add variables to the project.
Path:

Project settings > Tools > Custom Variables > Gear icon

  1. Click the + icon. The Add Node screen opens.
External Flow + icon
  1. Click the Salesforce option and click the Next button.
Add Node screen
Add Node screen
  1. Click the Salesforce Integration button.
Add Node/Salesforce Action screen
Add Node/Salesforce Action screen
  1. Click the Push option and click the Create New button.
Salesforce Integration screen
Salesforce Integration screen
  1. Use the drop-down lists to select the following:
    • Salesforce object. In this example, the Contact object is selected.
    • Action: In this example, the Create action is selected.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Under Mapping, map the variables to the relevant Salesforce fields and click the Apply button. The Salesforce integration is added to the screen.
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 Salesforce Push and click the Next button..
Add Node/Salesforce Action screen
Add Node/Salesforce Action screen
  1. If necessary, type a tag and click the Insert button. The Salesforce action node is added to the Flow.
  2. Click the + icon next to the Salesforce action node.
Salesforce action + sign
Salesforce action + sign
  1. Under Action, click the Send Email option and click the Next button.
Add Node screen
Add Node screen
  1. Click the + icon and click the Next button.
Add Node/Send Email screen
Add Node/Send Email screen
  1. Add a configuration name and, if necessary, a description.
Configure Email Settings screen
Configure Email Settings screen
  1. Use the drop-down lists to select the following:
    • Field
    • Email variable
  2. Click the Next button.
Configure Email Settings screen
Configure Email Settings screen
  1. Select an option to send the email.
Configure Email Settings screen
Configure Email Settings screen
  1. Configure the contents for the email.
  2. Click the Next button. You can add attachments if necessary
Configure Email Settings screen
Configure Email Settings screen
  1. Click the Apply button.
Configure Email Settings screen
Configure Email Settings screen
  1. Click the Next button.
  2. If necessary, add a tag and click the Insert button. The Send Email node is added to the Flow.
Add Node/Send Email screen
Add Node/Send Email screen
  1. Click the Save button to save the project.
  2. Click the + icon next to the Send Email node.
+ sign
+ sign
  1. Click the Finish option and click the Next button.
Add Node screen
Add Node screen
  1. Click the Next button.
  2. If necessary, add a tag and click the Insert button. The Finish node is added to the Flow.
  3. Click the Save button to save the project.
External Flow completed
External Flow completed
  1. Open the Project settings and click the Tools option.
  2. Use the toggle switch to enable the External Flow option.
  3. Click the Gear icon.
External Flow toggle switch and Gear icon
External Flow toggle switch and Gear icon
  1. Copy this flow hash value. You must paste it in the External Flow node of the source environment (in this example, environment B).
  2. Click the Close button.
External Flow screen
External Flow screen
  1. Click the Publish button to publish the Flow project.
Publish Project screen
Publish Project screen

Create a Triggering Flow in Environment B

  1. Add variables to the project.
Note:

Project settings > Tools > Custom Variables > Gear icon

  1. Click the + icon. The Add Node screen opens.
Trigger External Flow + icon
Trigger External Flow + icon
  1. Click the Salesforce option and click the Next button.
Add Node screen
Add Node screen
  1. Click the Salesforce Integration button.
Add Node/Salesforce Action screen
Add Node/Salesforce Action screen
  1. Click the Push option and click the Create New button.
Salesforce Integration screen
Salesforce Integration screen
  1. Use the drop-down lists to select the following:
    • Salesforce object. In this example, the Contact object is selected.
    • Action. In this example, the Create action is selected.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Under Mapping, map the variables to the relevant Salesforce fields and click the Apply button. The Salesforce integration is added to the screen.
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 Salesforce Push and click the Next button..
Add Node/Salesforce Action screen
Add Node/Salesforce Action screen
  1. If necessary, type a tag and click the Insert button. The Salesforce action node is added to the Flow.
  2. Click the + icon next to the Salesforce action node.
Salesforce action + sign
Salesforce action + sign
  1. Under Action, click the Send Email option and click the Next button.
Add Node screen
Add Node screen
  1. Click the + icon and click the Next button.
Add Node/Send Email screen
Add Node/Send Email screen
  1. Add a configuration name and, if necessary, a description.
Configure Email Settings screen
Configure Email Settings screen
  1. Use the drop-down lists to select the following:
    • Field
    • Email variable
  2. Click the Next button.
Configure Email Settings screen
Configure Email Settings screen
  1. Select an option to send the email.
Configure Email Settings screen
Configure Email Settings screen
  1. Configure the contents for the email.
  2. Click the Next button. You can add attachments if necessary
Configure Email Settings screen
Configure Email Settings screen
  1. Click the Apply button.
Configure Email Settings screen
Configure Email Settings screen
  1. Click the Next button.
  2. If necessary, add a tab and click the Insert button. The Send Email node is added to the Flow.
Add Node/Send Email screen
Add Node/Send Email screen
  1. Click the Save button to save the project.
  2. Click the + icon next to the Send Email node.
+ sign
+ sign
  1. Click the External Flow option and click the Next button.
Add Node screen
Add Node screen
  1. Paste the flow hash value from the external environment here.
Note:
  1. Browse to the external Flow project in the target environment (in this example, environment A).
  2. Open the Project Settings and, under Tools, use the toggle switch to enable the External Flow.
  3. Click the Gear icon and copy the Test Mode or Publish Mode flow hash.
  1. Click the Verify Hash button.
  2. Click the Next button.
Add Node/External Flow screen
Add Node/External Flow screen
  1. Map the fields from environment A to the variables in environment B and click the Next button.
Add Node/External Flow screen
Add Node/External Flow screen
  1. Click the Next button.
Add Node/External Flow screen
Add Node/External Flow screen
  1. If necessary, add a tag and click the Insert button. The External Flow node is added to the Flow.
  2. Click the + icon next to the External Flow node.
+ sign
+ sign
  1. Click the Finish option and click the Next button.
Add Node screen
Add Node screen
  1. Click the Next button.
  2. If necessary, add a tag and click the Insert button. The Finish node is added to the Flow.
  3. Click the Save button.
Trigger External Flow completed
Trigger External Flow completed
  1. Click the Publish button to publish the Flow project.
Publish Project screen
Publish Project screen

Create a Web Project

Make sure that you create the web project in the same environment as the project that will trigger the external flow.

  1. Add input elements with the necessary fields to create a contact.
  2. Add a button element and click the On Click Action icon.
On Click Action icon
On Click Action icon
  1. Click the + icon next to the Start node.
On Click Action screen
On Click Action screen
  1. Under System Actions, click the Flow option and click the Next button.
Add Node screen
Add Node screen
  1. Use the drop-down list and select the project that will trigger the external flow (in this example, it is the project in environment B).
  2. Click the Configure Parameters button.
Add Node/Flow screen
Add Node/Flow screen
  1. Map the input fields to the variables and click the Apply button.
  2. Click the Next button.
Configure Parameters screen
Configure Parameters screen
  1. If necessary, add a tag and click the Insert button. The Flow node is added to the On Click Action screen.
  2. Click the Apply button.
On Click Action screen
On Click Action screen
  1. Click the Publish button to publish the Web project. The webpage opens in a new tab.
Publish Project screen
Publish Project screen

Trigger the External Flow from Web

When the user completes the fields on the webpage and clicks the Save button, the following happens:

Webpage
Webpage
  • A new contact is created in Salesforce.
New Contact in Salesforce
New Contact in Salesforce
  • The user receives an email from environment A.
Email from External Flow (Environment A)
Email from External Flow (Environment A)
  • The user also receives an email from environment B.
Email from Trigger Flow (Environment B)
Email from Trigger Flow (Environment B)

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.