This lesson will cover the following topics:

02 | Setup
05 | Preview

01 Getting Started

This tutorial covers how to trigger a Flow from a Web project.

02 Setup

A Web project was configured, this project will be used to invoke the Flow. The Web project consists of the following components:
  • A file uploader.
  • A dropdown that users will use to choose where they want their file uploaded to Google Drive or One Drive.
  • A text input where users can add watermark text that will be added to the image.
  • A URL field will display where the file has been uploaded to.
Preview of the web example project

A Flow project was configured, saved, and published.
  • A watermark will first be added to the image.
  • A condition was configured to upload the file to a specific drive depending on the user selection.
Screenshot of the example flow

The following variables were configured in the Flow project:
  • Static:
    • watermark_text
    • file_url
    • upload_location

Custom variables window showing the static tab

  • Files:
    • input
    • output

Custom variables window showing the files tab

03 Global Variable

We need to create a variable in the web project.

1. Navigate to the Project Settings menu, select the tools tab, and click Custom Variables.

project settings menu showing the tools tab with the custom variables highlighted

2. Create a Static Variable labeled URL and click Apply.

Custom variables window showing the static tab

04 Invoking the Flow

A Flow can be invoked from any action- for example, clicking a button.

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.

Edit node screen

5. Configure the following in the Configure Parameters window and click Apply.
  • Input - Field: Choose files / File
  • watermark_text - Field: txt Watermark Text
  • upload_location - Field: ddn Upload to/Value

Configure parameters window

6. Click Return Parameters.

7. Configure the following in the Return Parameters window and click Apply.
  • URL - Field: file_url
Configure return parameters window

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

9. Select the After Finish + icon, choose Affected Elements as the node, and click Next.

On click action window with add node screen overlayed

10. Select the text element that will display the URL result.

11. Configure the following using the dropdowns, click Apply and Next.
  • Set value from
  • GV / URL
edit node window

12. Enter a Tag and click Insert.

05 Preview

A user uploads a file, chooses a storage solution, adds watermark text, and invokes the flow. The file will be watermarked and uploaded to the chosen storage solution. The link to the file will be populated in the text field.
Preview of how the example project works

06 Got Feedback?

Additional Resources